51
52
53
54
55
56
57
58
59
60
61
62
|
51
52
53
54
55
56
57
58
59
60
61
62
|
-
+
|
ptr< unordered_map< StringId, any > > m_pVars;
size_t m_complexity = 0; // The number of container terms in the matched pattern
};
extern optional< MatchSolution > Match( const Term& expression, const Term& pattern );
template< typename U >
static Generator< pair< MatchSolution, U > > Match( const Term& expression, const Trie< U >& patterns );
static Generator< pair< MatchSolution, const U& > > Match( const Term& expression, const Trie< U >& patterns );
extern Generator< MatchSolution > Match( const Term& expression, const Trie<>& patterns );
}
#endif
|