Searched defs:unary_counting_predicate (Results 1 – 2 of 2) sorted by relevance
16 struct unary_counting_predicate { struct21 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() argument22 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument24 bool operator () (const Arg &a) const { ++count_; return p_(a); } in operator ()()25 size_t count() const { return count_; } in count()26 void reset() { count_ = 0; } in reset()29 Predicate p_;30 mutable size_t count_;
15 struct unary_counting_predicate { struct20 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() function21 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument23 bool operator () (const Arg &a) const { ++count_; return p_(a); } in operator()24 size_t count() const { return count_; } in count()25 void reset() { count_ = 0; } in reset()29 mutable size_t count_;