VCCC  2024.05
VisualCamp Common C++ library
as_bytes.hpp File Reference
#include <cstddef>
#include "vccc/__core/byte.hpp"
#include "vccc/__span/dynamic_extent.hpp"
#include "vccc/__span/span.hpp"

Go to the source code of this file.

Namespaces

 vccc
 

Functions

template<typename T , std::size_t N>
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 More...
 
template<typename T , std::size_t N, std::enable_if_t< std::is_const< T >::value==false, int > = 0>
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 More...