mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-10 23:44:29 +00:00
parent
596f00c0db
commit
8bd403f888
10 changed files with 502 additions and 298 deletions
|
|
@ -43,6 +43,9 @@ struct MyOpt {
|
|||
};
|
||||
|
||||
struct MyString {
|
||||
using value_type = char; // required
|
||||
static constexpr auto npos = std::string_view::npos; // required
|
||||
|
||||
MyString() : str{} {} // required
|
||||
MyString(const char* s, std::size_t l) : str{s, l} {} // required
|
||||
bool empty() const { return str.empty(); } // required
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue