Home
last modified time | relevance | path

Searched defs:binary_counting_predicate (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/libcxx/test/support/
H A Dcounting_predicates.h36 struct binary_counting_predicate { struct
42 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() argument
43 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument
45 bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); } in operator()
46 size_t count() const { return count_; } in count()
47 void reset() { count_ = 0; } in reset()
51 mutable size_t count_;