tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / libc++ / dist / libcxx / test / containers / test_compare.h
blobba562868b3729b9359c54ef09b45e03b9229c80d
1 #ifndef TEST_COMPARE_H
2 #define TEST_COMPARE_H
4 #include <cstddef>
5 #include <type_traits>
6 #include <cstdlib>
7 #include <new>
8 #include <climits>
10 template <class C>
11 class test_compare
12 : private C
14 int data_;
15 public:
16 explicit test_compare(int data = 0) : data_(data) {}
18 typename C::result_type
19 operator()(typename std::add_lvalue_reference<const typename C::first_argument_type>::type x,
20 typename std::add_lvalue_reference<const typename C::second_argument_type>::type y) const
21 {return C::operator()(x, y);}
23 bool operator==(const test_compare& c) const
24 {return data_ == c.data_;}
27 #endif // TEST_COMPARE_H