Home
last modified time | relevance | path

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

/aosp_15_r20/external/libcxx/test/support/
H A Dcounting_predicates.hpp16 struct unary_counting_predicate { struct
21 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() argument
22 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument
24 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_;
/aosp_15_r20/external/cronet/third_party/libc++/src/test/support/
H A Dcounting_predicates.h17 struct unary_counting_predicate { struct
22 unary_counting_predicate(Predicate p) : p_(p), count_(0) {} in unary_counting_predicate() argument
24 unary_counting_predicate& operator=(const unary_counting_predicate&) = default; argument
25 ~unary_counting_predicate() {} in ~unary_counting_predicate() argument
27 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_;