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

Method hasValue

include/matchit.h:1112–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1110
1111 constexpr auto &variant() { return mVariant; }
1112 constexpr auto hasValue() const
1113 {
1114 return std::visit(overload([](Type const &)
1115 { return true; },
1116 [](Type const *)
1117 { return true; },
1118 [](std::monostate const &)
1119 { return false; }),
1120 mVariant);
1121 }
1122 constexpr decltype(auto) value() const
1123 {
1124 return std::visit(

Callers

nothing calls this directly

Calls 1

overloadFunction · 0.70

Tested by

no test coverage detected