Searched defs:binary_counting_predicate (Results 1 – 3 of 3) sorted by relevance
35 struct binary_counting_predicate { struct41 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() function42 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument44 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_;
38 struct binary_counting_predicate { struct44 binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} in binary_counting_predicate() argument45 ~binary_counting_predicate() {} in ~binary_counting_predicate() argument47 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_;