Remove building with NOCRYPTO option
[minix.git] / external / bsd / libc++ / dist / libcxx / test / containers / test_compare.h
blob9c54799172e0d053e261fd4eaf39b5bd7c21b0bd
1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
10 #ifndef TEST_COMPARE_H
11 #define TEST_COMPARE_H
13 #include <cstddef>
14 #include <type_traits>
15 #include <cstdlib>
16 #include <new>
17 #include <climits>
19 template <class C>
20 class test_compare
21 : private C
23 int data_;
24 public:
25 explicit test_compare(int data = 0) : data_(data) {}
27 typename C::result_type
28 operator()(typename std::add_lvalue_reference<const typename C::first_argument_type>::type x,
29 typename std::add_lvalue_reference<const typename C::second_argument_type>::type y) const
30 {return C::operator()(x, y);}
32 bool operator==(const test_compare& c) const
33 {return data_ == c.data_;}
36 #endif // TEST_COMPARE_H