MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / make_matcher

Function make_matcher

3rd/wildcards/include/wildcards/matcher.hpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template <typename Pattern, typename EqualTo = cx::equal_to<void>>
64constexpr matcher<Pattern, EqualTo> make_matcher(
65 Pattern&& pattern,
66 const cards<container_item_t<Pattern>>& c = cards<container_item_t<Pattern>>(),
67 const EqualTo& equal_to = EqualTo())
68{
69 return matcher<Pattern, EqualTo>{std::forward<Pattern>(pattern), c, equal_to};
70}
71
72template <typename Pattern, typename EqualTo = cx::equal_to<void>,
73 typename = typename std::enable_if<!std::is_same<EqualTo, cards_type>::value>::type>

Callers 1

operator"" _wcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected