struct Span
C++
template <typename T> struct Span : public detail::TSpan<T>
A contiguous run of T inside a buffer: pointers first and last,
begin()/end(), size(), operator[] and data(). Does not own the
memory.
Span<char> and Span<const char> convert to std::string_view.
include/nprpc/flat.hpp:93
Operators
operator std::string() const noexcept
The characters, copied.
include/nprpc/flat.hpp:112
operator std::string_view() const noexcept
The characters, without a copy.
include/nprpc/flat.hpp:107
void operator=(const char *str)
Copies the first size() characters of str, which must be at least
that long; the span is not resized.
include/nprpc/flat.hpp:101
void operator=(std::string_view str)
Copies str's bytes in; the span must be large enough.
include/nprpc/flat.hpp:130