YSTest: Container.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Container.h
浏览该文件的文档.
1 /*
2 © 2010-2016 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YCL_INC_Container_h_
29 #define YCL_INC_Container_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YCLib_YCommon
33 //#include <ext/vstring.h>
34 #include <ystdex/tstring_view.hpp>
35 #include <ystdex/array.hpp>
36 #include <deque>
37 #include <forward_list>
38 #include <list>
39 #include <vector>
40 #include <map>
41 #include <set>
42 #include <unordered_set>
43 #include <unordered_map>
44 #include <queue>
45 #include <stack>
46
47 namespace platform
48 {
49
51 inline namespace containers
52 {
53
54 using std::forward_as_tuple;
55 using std::get;
56 using std::ignore;
57 using std::make_pair;
58 using std::make_tuple;
59 using std::pair;
60 using std::tie;
61 using std::tuple;
62 using std::tuple_cat;
63
65 using std::begin;
67 using std::end;
68
69 using std::array;
70 using std::deque;
71 using std::forward_list;
72 using std::list;
73 using std::vector;
74
75 using std::map;
76 using std::multimap;
77 using std::multiset;
78 using std::set;
79
80 using std::unordered_map;
82 using std::unordered_multimap;
84 using std::unordered_multiset;
85 using std::unordered_set;
86
87 using std::stack;
88 using std::priority_queue;
89 using std::queue;
90
96 template<typename _tChar, typename _tTraits = std::char_traits<_tChar>,
97 class _tAlloc = std::allocator<_tChar>>
98 using basic_string = std::basic_string<_tChar, _tTraits, _tAlloc>;
99 // using versa_string = __gnu_cxx::__versa_string<_tChar>;
100
101 using string = basic_string<char>;
103 using u16string = basic_string<char16_t>;
105 using u32string = basic_string<char32_t>;
107
108 using wstring = basic_string<wchar_t>;
109
111
112 using ystdex::basic_string_view;
113 using ystdex::string_view;
114 using ystdex::u16string_view;
115 using ystdex::wstring_view;
117
119 using ystdex::basic_tstring_view;
120 using ystdex::tstring_view;
121 using ystdex::u16tstring_view;
122 using ystdex::wtstring_view;
124
125 using ystdex::sfmt;
126 using ystdex::vsfmt;
128
130 using ystdex::size;
132 using std::to_string;
134 using ystdex::to_string;
136 using std::to_wstring;
137
138 } // inline namespace containers;
139
140 } // namespace platform;
141
142 namespace platform_ex
143 {
144
146 using namespace platform::containers;
147
148 } // namespace platform_ex;
149
150 #endif
151
platform::containers::wstring
basic_string< wchar_t > wstring
Definition: Container.h:108
ystdex::basic_string_view
Definition: string_view.hpp:49
platform::containers::u16string
basic_string< char16_t > u16string
Definition: Container.h:103
ystdex::to_string
std::string to_string(const std::thread::id &)
转换 thread::id 为字符串表示。
platform
默认平台命名空间。
Definition: Container.h:47
ystdex::u16string_view
basic_string_view< char16_t > u16string_view
Definition: string_view.hpp:416
ystdex::cpp2011::end
_type * end(_type(&&array)[_vN])
Definition: range.hpp:54
ystdex::to_wstring
std::wstring to_wstring(unsigned char val)
Definition: string.hpp:1058
ystdex::wstring_view
basic_string_view< wchar_t > wstring_view
Definition: string_view.hpp:418
ystdex::basic_tstring_view
指定结束字符的只读字符串视图。
Definition: tstring_view.hpp:47
ystdex::sfmt
auto sfmt(const _tChar *fmt,...) -> decltype(vsfmt(fmt, std::declval< std::va_list >()))
以 C 标准输出格式的输出 std::basic_string 实例的对象。
Definition: string.hpp:1200
YModules.h
platform::containers::u32string
basic_string< char32_t > u32string
Definition: Container.h:105
ystdex::u16tstring_view
basic_tstring_view< char16_t > u16tstring_view
Definition: tstring_view.hpp:292
tstring_view.hpp
指定结束字符的只读字符串视图。
platform::containers
Definition: Container.h:51
array.hpp
数组操作。
platform_ex
平台扩展命名空间。
Definition: Android.h:45
platform::containers::basic_string
std::basic_string< _tChar, _tTraits, _tAlloc > basic_string
满足 ISO C++03 std::basic_string 但不保证满足 ISO C++11 的实现。
Definition: Container.h:98
ystdex::wtstring_view
basic_tstring_view< wchar_t > wtstring_view
Definition: tstring_view.hpp:294
ystdex::cpp2011::begin
_type * begin(_type(&&array)[_vN])
Definition: range.hpp:46
ystdex::tstring_view
basic_tstring_view< char > tstring_view
Definition: tstring_view.hpp:291
ystdex::size
auto size(const _tRange &c) -> decltype(c.size())
类容器访问。
Definition: range.hpp:233
ystdex::string_view
basic_string_view< char > string_view
Definition: string_view.hpp:415
ystdex::vsfmt
_tString vsfmt(const _tChar *fmt, std::va_list args)
以 C 标准输出格式的输出 std::basic_string 实例的对象。
Definition: string.hpp:1171
ystdex::details::get
get())
Definition: cast.hpp:102