29#include <unordered_map>
30#include <unordered_set>
31#include <kiwano/macros.h>
32#include <kiwano/core/String.h>
33#include <kiwano/core/Function.h>
34#include <kiwano/core/Singleton.h>
35#include <kiwano/core/Any.h>
36#include <kiwano/core/Allocator.h>
37#include <kiwano/core/BitOperator.h>
38#include <kiwano/core/Flag.h>
45using InputStream = std::istream;
49using OutputStream = std::ostream;
53using StringStream = std::stringstream;
57using WideStringStream = std::wstringstream;
61template <
typename _Ty,
typename _Alloc = std::allocator<_Ty>>
62using Vector = std::vector<_Ty, _Alloc>;
66template <
typename _Ty,
typename _Alloc = std::allocator<_Ty>>
67using List = std::list<_Ty, _Alloc>;
71template <
typename _Ty,
typename _Alloc = std::allocator<_Ty>>
72using Deque = std::deque<_Ty, _Alloc>;
76template <
typename _Ty,
typename _Container = Deque<_Ty>>
77using Queue = std::queue<_Ty, _Container>;
81template <
typename _Kty,
typename _Compare = std::less<_Kty>,
typename _Alloc = std::allocator<_Kty>>
82using Set = std::set<_Kty, _Compare, _Alloc>;
86template <
typename _Ty1,
typename _Ty2>
87using Pair = std::pair<_Ty1, _Ty2>;
91template <
typename _Kty,
typename _Hash = std::hash<_Kty>,
typename _Keq = std::equal_to<_Kty>,
92 typename _Alloc = std::allocator<_Kty>>
93using UnorderedSet = std::unordered_set<_Kty, _Hash, _Keq, _Alloc>;
97template <
typename _Ty,
typename _Container = Deque<_Ty>>
98using Stack = std::stack<_Ty, _Container>;
102template <
typename _Kty,
typename _Ty,
typename _Compare = std::less<_Kty>,
103 typename _Alloc = std::allocator<Pair<const _Kty, _Ty>>>
104using Map = std::map<_Kty, _Ty, _Compare, _Alloc>;
108template <
typename _Kty,
typename _Ty,
typename _Hash = std::hash<_Kty>,
typename _Keq = std::equal_to<_Kty>,
109 typename _Alloc = std::allocator<Pair<const _Kty, _Ty>>>
110using UnorderedMap = std::unordered_map<_Kty, _Ty, _Hash, _Keq, _Alloc>;
不可拷贝对象
Definition: Common.h:115