Home
last modified time | relevance | path

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

/external/libcxx/test/support/
Dcounting_predicates.hpp15 struct unary_counting_predicate : public std::unary_function<Arg, bool> { struct
17 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() argument
18 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument
20 bool operator () (const Arg &a) const { ++count_; return p_(a); } in operator ()()
21 size_t count() const { return count_; } in count()
22 void reset() { count_ = 0; } in reset()
25 Predicate p_;
26 mutable size_t count_;