//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template struct pair // tuple_element >::type #include int main() { { typedef std::pair P1; static_assert((std::is_same::type, int>::value), ""); static_assert((std::is_same::type, short>::value), ""); } { typedef std::pair P1; static_assert((std::is_same::type, int*>::value), ""); static_assert((std::is_same::type, char>::value), ""); } }