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 //===----------------------------------------------------------------------===// 9 10 // <typeindex> 11 12 // struct hash<type_index> 13 // : public unary_function<type_index, size_t> 14 // { 15 // size_t operator()(type_index index) const; 16 // }; 17 18 #include <typeindex> 19 #include <type_traits> 20 21 int main() 22 { 23 static_assert((std::is_base_of<std::unary_function<std::type_index, std::size_t>, 24 std::hash<std::type_index> >::value), ""); 25 } 26