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 // <utility> 11 12 // template <class T1, class T2> 13 // struct pair 14 // { 15 // typedef T1 first_type; 16 // typedef T2 second_type; 17 18 #include <utility> 19 #include <type_traits> 20 21 int main() 22 { 23 typedef std::pair<float, short*> P; 24 static_assert((std::is_same<P::first_type, float>::value), ""); 25 static_assert((std::is_same<P::second_type, short*>::value), ""); 26 } 27