carb::cpp::as_bytes
Defined in carb/cpp/Span.h
- 
template<class T, std::size_t N>
 auto carb::cpp::as_bytes(span<T, N> s) noexcept
- Obtains a view ot the object representation of the elements of the given span. - Template Parameters
- T – the - element_typeof the span
- N – the - extentof the span
 
- Parameters
- s – The span 
- Returns
- A span of type - span<const cpp::byte, E>where- Eis dynamic_extent if- Nis also dynamic_extent, otherwise- Eis- sizeof(T) * N.