tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / libc++ / dist / libcxx / test / containers / test_hash.h
blob95f6e9eb195d0ede5b0e61e404c578d482f8b296
1 #ifndef TEST_HASH_H
2 #define TEST_HASH_H
4 #include <cstddef>
5 #include <type_traits>
7 template <class C>
8 class test_hash
9 : private C
11 int data_;
12 public:
13 explicit test_hash(int data = 0) : data_(data) {}
15 std::size_t
16 operator()(typename std::add_lvalue_reference<const typename C::argument_type>::type x) const
17 {return C::operator()(x);}
19 bool operator==(const test_hash& c) const
20 {return data_ == c.data_;}
23 #endif // TEST_HASH_H