fixed_string: add string_view operator

This commit is contained in:
Danny Robson 2024-03-04 11:45:59 +10:00
parent eef192ab3c
commit ed4ad99851

View File

@ -32,6 +32,11 @@ namespace cruft {
}
constexpr operator char const* () const { return value; }
constexpr operator std::string_view () const { return value; }
constexpr char const*
c_str (void) const noexcept
{ return value; }
};