1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class T1, class T2> struct pair
14 // template<size_t I, class T1, class T2>
15 // typename tuple_element<I, std::pair<T1, T2> >::type&&
16 // get(pair<T1, T2>&&);
24 #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
26 typedef std::pair<std::unique_ptr<int>, short> P;
27 P p(std::unique_ptr<int>(new int(3)), 4);
28 std::unique_ptr<int> ptr = std::get<0>(std::move(p));
31 #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES