libcopp  1.1.0
tuple.h
Go to the documentation of this file.
1 
14 #ifndef STD_TUPLE_H
15 #define STD_TUPLE_H
16 
17 
18 #pragma once
19 
20 // ============================================================
21 // 公共包含部分
22 // 自动导入TR1库
23 // ============================================================
24 
38 #include "utility.h"
39 
40 // VC9.0 SP1以上分支判断
41 #if defined(_MSC_VER) && ((_MSC_VER == 1500 && defined(_HAS_TR1)) || _MSC_VER > 1500)
42 // 采用VC std::tr1库
43 #include <tuple>
44 #elif defined(__clang__) && __clang_major__ >= 3
45 // 采用Clang c++11库
46 #include <tuple>
47 #elif defined(__GNUC__) && __GNUC__ >= 4
48 // 采用G++ std::tr1库
49 #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__)
50 #include <tuple>
51 #else
52 #include <tr1/tuple>
53 namespace std {
54  using tr1::get;
55  using tr1::ignore;
56  using tr1::make_tuple;
57  using tr1::tie;
58  using tr1::tuple;
59  using tr1::tuple_element;
60  using tr1::tuple_size;
61 }
62 #endif
63 #else
64 // 采用boost库
65 #include <boost/tr1/tuple.hpp>
66 namespace std {
67  using tr1::get;
68  using tr1::ignore;
69  using tr1::make_tuple;
70  using tr1::tie;
71  using tr1::tuple;
72  using tr1::tuple_element;
73  using tr1::tuple_size;
74 }
75 #endif
76 
77 #endif
STL namespace.
Tc * get()
get current coroutine and try to convert type
导入公共高级库 Licensed under the MIT licenses.