carb::cpp::as_writable_bytes
Defined in carb/cpp/Span.h
-
template<class T, std::size_t N>
auto carb::cpp::as_writable_bytes(span<T, N> s) noexcept Obtains a writable view to the object representation of the elements of the given span.
- Template Parameters
T – the
element_type
of the spanN – the
extent
of the span
- Parameters
s – The span
- Returns
A span of type
span<cpp::byte, E>
whereE
is dynamic_extent ifN
is also dynamic_extent, otherwiseE
issizeof(T) * N
.