Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BowenFu/matchit.cpp
/ get_if
Function
get_if
test/matchit/legacy.cpp:121–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
119
120
template <typename T>
121
auto get_if(Num const *num)
122
{
123
return static_cast<T const *>(num->kind() == T::k ? num : nullptr);
124
}
125
126
TEST(Match, test4)
127
{
Callers
nothing calls this directly
Calls
1
kind
Method · 0.45
Tested by
no test coverage detected