Home | History | Annotate | Download | only in pair.astuple
      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 #include <utility>
     11 #include <complex>
     12 
     13 #include <cassert>
     14 
     15 int main()
     16 {
     17 #if _LIBCPP_STD_VER > 11
     18     typedef std::unique_ptr<int> upint;
     19     std::pair<upint, int> t(upint(new int(4)), 23);
     20     upint p = std::get<upint>(t);
     21 #else
     22 #error
     23 #endif
     24 }
     25