MCPcopy 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
120template <typename T>
121auto get_if(Num const *num)
122{
123 return static_cast<T const *>(num->kind() == T::k ? num : nullptr);
124}
125
126TEST(Match, test4)
127{

Callers

nothing calls this directly

Calls 1

kindMethod · 0.45

Tested by

no test coverage detected