Searched defs:unary_counting_predicate (Results 1 – 1 of 1) sorted by relevance
17 struct unary_counting_predicate { struct22 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() argument24 unary_counting_predicate& operator=(const unary_counting_predicate&) = default; argument25 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument27 bool operator () (const Arg &a) const { ++count_; return p_(a); } in operator()28 std::size_t count() const { return count_; } in count()29 void reset() { count_ = 0; } in reset()33 mutable std::size_t count_;