MGL(Win32)
読み取り中…
検索中…
一致する文字列を見つけられません
mgl_stl_containers.h
[詳解]
1// SPDX-License-Identifier: Zlib
2/* ------------------------------------------------------------------------- */
9/* ------------------------------------------------------------------------- */
10
11#ifndef INCGUARD_MGL_STL_CONTAINERS_H_1651242469
12#define INCGUARD_MGL_STL_CONTAINERS_H_1651242469
13
14#include <deque>
15#include <stack>
16#include <queue>
17#include <vector>
18#include <forward_list>
19#include <list>
20#include <map>
21#include <set>
22#include <unordered_map>
23#include <unordered_set>
24
26
27namespace MGL::STL
28{
30template <class T>
31using deque = std::deque<T, Allocator<T>>;
32
34template <class T>
35using stack = std::stack<T, deque<T>>;
36
38template <class T>
39using queue = std::queue<T, deque<T>>;
40
42template <class T>
43using forward_list = std::forward_list<T, Allocator<T>>;
44
46template <class T>
47using list = std::list<T, Allocator<T>>;
48
50template <class T>
51using vector = std::vector<T, Allocator<T>>;
52
54template <class Key, class T, class Compare = std::less<Key>>
55using map = std::map<Key, T, Compare, Allocator<std::pair<const Key, T>>>;
56
58template <class Key, class T, class Compare = std::less<Key>>
59using multimap = std::multimap<Key, T, Compare, Allocator<std::pair<const Key, T>>>;
60
62template <class Key, class Compare = std::less<Key>>
63using set = std::set<Key, Compare, Allocator<Key>>;
64
66template <class Key, class Compare = std::less<Key>>
67using multiset = std::multiset<Key, Compare, Allocator<Key>>;
68
70template <class Key, class T, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
71using unordered_map = std::unordered_map<Key, T, Hash, Pred, Allocator<std::pair<const Key, T>>>;
72
74template <class Key, class T, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
75using unordered_multimap = std::unordered_multimap<Key, T, Hash, Pred, Allocator<std::pair<const Key, T>>>;
76
78template <class Key, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
79using unordered_set = std::unordered_set<Key, Hash, Pred, Allocator<Key>>;
80
82template <class Key, class Hash = std::hash<Key>, class Pred = std::equal_to<Key>>
83using unordered_multiset = std::unordered_multiset<Key, Hash, Pred, Allocator<Key>>;
84
85} // namespace MGL::STL
86
87
88#endif // INCGUARD_MGL_STL_CONTAINERS_H_1651242469
89
90// vim: et ts=4 sw=4 sts=4
std::unordered_multiset< Key, Hash, Pred, Allocator< Key > > unordered_multiset
std:unordered_multisetの代替
Definition mgl_stl_containers.h:83
std::stack< T, deque< T > > stack
std::stackの代替
Definition mgl_stl_containers.h:35
std::unordered_multimap< Key, T, Hash, Pred, Allocator< std::pair< const Key, T > > > unordered_multimap
std::unordered_multimapの代替
Definition mgl_stl_containers.h:75
std::map< Key, T, Compare, Allocator< std::pair< const Key, T > > > map
std::mapの代替
Definition mgl_stl_containers.h:55
std::unordered_set< Key, Hash, Pred, Allocator< Key > > unordered_set
std:unordered_setの代替
Definition mgl_stl_containers.h:79
std::list< T, Allocator< T > > list
std::listの代替
Definition mgl_stl_containers.h:47
std::multiset< Key, Compare, Allocator< Key > > multiset
std::multisetの代替
Definition mgl_stl_containers.h:67
std::multimap< Key, T, Compare, Allocator< std::pair< const Key, T > > > multimap
std::multimapの代替
Definition mgl_stl_containers.h:59
std::queue< T, deque< T > > queue
std::queueの代替
Definition mgl_stl_containers.h:39
std::deque< T, Allocator< T > > deque
std::dequeの代替
Definition mgl_stl_containers.h:31
std::unordered_map< Key, T, Hash, Pred, Allocator< std::pair< const Key, T > > > unordered_map
std::unordered_mapの代替
Definition mgl_stl_containers.h:71
std::vector< T, Allocator< T > > vector
std::vectorの代替
Definition mgl_stl_containers.h:51
std::set< Key, Compare, Allocator< Key > > set
std::setの代替
Definition mgl_stl_containers.h:63
std::forward_list< T, Allocator< T > > forward_list
std::forward_listの代替
Definition mgl_stl_containers.h:43
MGL STLのメモリ関連の代替