//===----------------------------------------------------------------------===// // // 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_size >::value #include int main() { { typedef std::pair P1; static_assert((std::tuple_size::value == 2), ""); } { typedef std::pair const P1; static_assert((std::tuple_size::value == 2), ""); } { typedef std::pair volatile P1; static_assert((std::tuple_size::value == 2), ""); } { typedef std::pair const volatile P1; static_assert((std::tuple_size::value == 2), ""); } }