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

Method value

develop/matchit/patterns.h:815–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

813 mVariant);
814 }
815 constexpr decltype(auto) value() const
816 {
817 return std::visit(
818 overload([](Type const &v) -> Type const & { return v; },
819 [](Type const *p) -> Type const & { return *p; },
820 [](std::monostate const &) -> Type const & {
821 throw std::logic_error("invalid state!");
822 }),
823 mVariant);
824 }
825
826 constexpr decltype(auto) mutableValue()
827 {

Callers 1

IdClass · 0.45

Calls 1

overloadFunction · 0.70

Tested by

no test coverage detected