Iros
 
Loading...
Searching...
No Matches
as_writable_bytes.h
Go to the documentation of this file.
1#pragma once
2
5
6namespace di::vocab {
7namespace detail {
9 template<typename T, size_t N, size_t S = N == dynamic_extent ? dynamic_extent : sizeof(T) * N>
10 requires(!concepts::Const<T>)
11 auto operator()(Span<T, N> span) const -> Span<Byte, S> {
12 return { reinterpret_cast<Byte*>(span.data()), span.size_bytes() };
13 }
14 };
15}
16
18}
19
20namespace di {
22}
Definition span_forward_declaration.h:10
Definition language.h:18
std::byte Byte
Definition byte.h:63
Definition erasure_cast.h:7
Definition lazy.h:165
constexpr auto as_writable_bytes
Definition as_writable_bytes.h:17
Definition zstring_parser.h:9
Definition as_writable_bytes.h:8
auto operator()(Span< T, N > span) const -> Span< Byte, S >
Definition as_writable_bytes.h:11