//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // template struct pair // template // const typename tuple_element >::type& // get(const pair&); #include #include int main() { { typedef std::pair P; const P p(3, 4); assert(std::get<0>(p) == 3); assert(std::get<1>(p) == 4); } }