Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
template <String::Storage S, typename Pat>
52
auto 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
60
char *String::data()
61
{
Callers
nothing calls this directly
Calls
1
app
Function · 0.85
Tested by
no test coverage detected