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

Method bindValue

develop/matchit/patterns.h:860–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858 public:
859 template <typename Value>
860 constexpr static auto bindValue(ValueVariant<Type> &v, Value &&value,
861 std::false_type /* StorePointer */)
862 {
863 // for constexpr
864 v = ValueVariant<Type>{std::forward<Value>(value)};
865 }
866 template <typename Value>
867 constexpr static auto bindValue(ValueVariant<Type> &v, Value &&value,
868 std::true_type /* StorePointer */)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected