Home
last modified time | relevance | path

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

/external/libcxx/test/support/
Dcounting_predicates.hpp35 struct binary_counting_predicate { struct
41 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() function
42 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument
44 bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); } in operator ()()
45 size_t count() const { return count_; } in count()
46 void reset() { count_ = 0; } in reset()
49 Predicate p_;
50 mutable size_t count_;
/external/cronet/stable/third_party/libc++/src/test/support/
Dcounting_predicates.h38 struct binary_counting_predicate { struct
44 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() argument
45 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument
47 bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); } in operator()
48 std::size_t count() const { return count_; } in count()
49 void reset() { count_ = 0; } in reset()
53 mutable std::size_t count_;
/external/cronet/tot/third_party/libc++/src/test/support/
Dcounting_predicates.h38 struct binary_counting_predicate { struct
44 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() argument
45 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument
47 bool operator () (const Arg1 &a1, const Arg2 &a2) const { ++count_; return p_(a1, a2); } in operator()
48 std::size_t count() const { return count_; } in count()
49 void reset() { count_ = 0; } in reset()
53 mutable std::size_t count_;