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 //===----------------------------------------------------------------------===//
10 // UNSUPPORTED: c++98, c++03, c++11
14 // template <class T> struct hash<experimental::fundamentals_v2::propagate_const<T>>;
16 #include <experimental/propagate_const>
17 #include "propagate_const_helpers.h"
20 using std::experimental::propagate_const;
23 template <> struct hash<X>
25 typedef X first_argument_type;
27 size_t operator()(const first_argument_type&) const
37 typedef propagate_const<X> P;
41 auto h = std::hash<P>();