diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:08 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:08 +0000 |
commit | 0564cdb94a7a1facbb0dbf888ceb90638aa70ecd (patch) | |
tree | 3ccbf1ba827928fca93419d0b6cf83ce0f650f2a /test/support/counting_predicates.hpp | |
parent | dbabdb5220c44e5938d404eefb84b5ed55667ea8 (diff) |
Notes
Diffstat (limited to 'test/support/counting_predicates.hpp')
-rw-r--r-- | test/support/counting_predicates.hpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/support/counting_predicates.hpp b/test/support/counting_predicates.hpp index 2bd1426934e5..050b51b75bb1 100644 --- a/test/support/counting_predicates.hpp +++ b/test/support/counting_predicates.hpp @@ -12,8 +12,11 @@ template <typename Predicate, typename Arg> -struct unary_counting_predicate : public std::unary_function<Arg, bool> { +struct unary_counting_predicate { public: + typedef Arg argument_type; + typedef bool result_type; + unary_counting_predicate(Predicate p) : p_(p), count_(0) {} ~unary_counting_predicate() {} @@ -28,8 +31,11 @@ private: template <typename Predicate, typename Arg1, typename Arg2=Arg1> -struct binary_counting_predicate : public std::binary_function<Arg1, Arg2, bool> { +struct binary_counting_predicate { public: + typedef Arg1 first_argument_type; + typedef Arg2 second_argument_type; + typedef bool result_type; binary_counting_predicate ( Predicate p ) : p_(p), count_(0) {} ~binary_counting_predicate() {} |