5 #ifndef VCCC_SPAN_AS_BYTES_HPP
6 #define VCCC_SPAN_AS_BYTES_HPP
17 template<
typename T, std::
size_t N>
18 struct as_bytes_size : std::integral_constant<std::size_t, sizeof(T) * N> {};
20 struct as_bytes_size<T,
dynamic_extent> : std::integral_constant<std::size_t, dynamic_extent> {};
35 template<
typename T, std::
size_t N>
39 reinterpret_cast<const byte*
>(s.data()),
51 reinterpret_cast<byte*
>(s.data()),
a non-owning view over a contiguous sequence of objects
Definition: span.hpp:118
constexpr span< byte, detail::as_bytes_size< T, N >::value > as_writable_bytes(span< T, N > s) noexcept
converts a span into a view of its underlying bytes
Definition: as_bytes.hpp:49
constexpr span< const byte, detail::as_bytes_size< T, N >::value > as_bytes(span< T, N > s) noexcept
converts a span into a view of its underlying bytes
Definition: as_bytes.hpp:37
constexpr VCCC_INLINE_OR_STATIC std::size_t dynamic_extent
Definition: dynamic_extent.hpp:18
Definition: directory.h:12
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35