1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
14 #include <type_traits>
22 explicit test_hash(int data
= 0) : data_(data
) {}
25 operator()(typename
std::add_lvalue_reference
<const typename
C::argument_type
>::type x
) const
26 {return C::operator()(x
);}
28 bool operator==(const test_hash
& c
) const
29 {return data_
== c
.data_
;}