function template
std::as_bytes
- Header
<span>- Draft
- [span.objectrep]
- Scope
std- cppreference
- std::as_bytes
Synopsis
template<class ElementType, size_t Extent>
requires (!is_volatile_v<ElementType>)
span<const byte, Extent == dynamic_extent ? dynamic_extent : sizeof(ElementType) * Extent> as_bytes(
span<ElementType, Extent> s) noexcept;