openMSX
|
#include "ranges.hh"
#include "StringStorage.hh"
#include <cassert>
#include <string_view>
#include <utility>
Go to the source code of this file.
Classes | |
class | static_string_view |
static_string_view More... | |
struct | static_string_view::lifetime_ok_tag |
Functions | |
auto | make_string_storage (std::string_view sv) |
Take a string_view, make a copy of it, and return a pair of. | |
|
inline |
Take a string_view, make a copy of it, and return a pair of.
Note: using a std::string for the string-storage is not correct when that std::string object can be moved. This implementation is correct even when the storage-handler object gets moved.
Definition at line 63 of file static_string_view.hh.
References allocate_string_storage(), and ranges::copy().
Referenced by TEST_CASE().