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

Method matchValue

include/matchit.h:1211–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1209
1210 template <typename Value>
1211 constexpr auto
1212 matchValue(Value &&v) const
1213 {
1214 if (hasValue())
1215 {
1216 return IdTraits<Type>::equal(internalValue(), v);
1217 }
1218 IdUtil::bindValue(block().variant(), std::forward<Value>(v),
1219 StorePointer<Type, Value>{});
1220 return true;
1221 }
1222 constexpr void reset(int32_t depth) const { return block().reset(depth); }
1223 constexpr void confirm(int32_t depth) const { return block().confirm(depth); }
1224 constexpr bool hasValue() const { return block().hasValue(); }

Callers 3

TESTFunction · 0.45
matchPatternImplMethod · 0.45
matchPatternsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected