1#ifndef STATIC_STRING_VIEW_HH
2#define STATIC_STRING_VIEW_HH
39 assert(buf[N - 1] ==
'\0');
48 constexpr operator std::string_view()
const {
return s; }
66 char* p = storage.get();
68 return std::pair{std::move(storage),
70 std::string_view(p, sv.size()))};
StringStorage allocate_string_storage(size_t size)
Allocate a 'StringStorage' large enough for 'size' characters.
constexpr static_string_view(lifetime_ok_tag, std::string_view v)
constexpr static_string_view(const char(&buf)[N])
constexpr static_string_view(char(&buf)[N])=delete
constexpr auto copy(InputRange &&range, OutputIter out)
auto make_string_storage(std::string_view sv)
Take a string_view, make a copy of it, and return a pair of.