MCPcopy Create free account
hub / github.com/BowenFu/matchit.cpp / asEnum

Function asEnum

sample/Predicate-based-Discriminator.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51template <String::Storage S, typename Pat>
52auto asEnum(Pat &&pat)
53{
54 using namespace matchit;
55 return app([](auto &&x)
56 { return x.template get_if<S>(); },
57 some(pat));
58}
59
60char *String::data()
61{

Callers

nothing calls this directly

Calls 1

appFunction · 0.85

Tested by

no test coverage detected