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