1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11
13 // template <class T> struct hash<experimental::fundamentals_v2::propagate_const<T>>;
15 #include <experimental/propagate_const>
16 #include "test_macros.h"
17 #include "propagate_const_helpers.h"
20 using std::experimental::propagate_const
;
23 template <> struct hash
<X
>
25 typedef X first_argument_type
;
27 std::size_t operator()(const first_argument_type
&) const
35 int main(int, char**) {
37 typedef propagate_const
<X
> P
;
41 auto h
= std::hash
<P
>();