MCPcopy Create free account
hub / github.com/Neargye/magic_enum / MyStringView

Method MyStringView

test/test_aliases.cpp:68–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 static constexpr auto npos = std::string_view::npos; // required
67
68 constexpr MyStringView() : str{} {} // required
69 constexpr MyStringView(const char* cstr, std::size_t size) : str{cstr, size} {} // required
70 constexpr bool empty() const { return str.empty(); } // required
71 constexpr std::size_t size() const { return str.size(); } // required

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected