2#include "memory/external_allocator.h"
3#include "memory/fast_allocator.h"
12#include <unordered_map>
25template <
typename T,
typename Alloc = memory::external_allocator<T>>
26using vector = std::vector<T, Alloc>;
29template <
typename T,
typename Alloc = memory::external_allocator<T>>
30using deque = std::deque<T, Alloc>;
33template <
typename T,
typename Alloc = memory::external_allocator<T>>
34using forward_list = std::forward_list<T, Alloc>;
37template <
typename T,
typename Alloc = memory::external_allocator<T>>
38using list = std::list<T, Alloc>;
41template <
typename Key,
typename T,
typename Alloc = memory::external_allocator<std::pair<const Key, T>>>
42using map = std::map<Key, T, std::less<Key>, Alloc>;
45template <
typename Key,
typename T,
typename Alloc = memory::external_allocator<std::pair<const Key, T>>>
46using unordered_map = std::unordered_map<Key, T, std::hash<Key>, std::equal_to<Key>, Alloc>;
49template <
typename T,
typename Alloc = memory::external_allocator<T>>
50using stack = std::stack<T, deque<T, Alloc>>;
53template <
typename T,
typename Alloc = memory::external_allocator<T>>
54using queue = std::queue<T, deque<T, Alloc>>;
57using fast_list = std::list<T, memory::fast_allocator<T>>;
61using fast_vector = std::vector<T, memory::fast_allocator<T>>;
64using fast_priority_queue = std::priority_queue<T, fast_vector<T>>;
66template <
class T,
class Compare = std::less<T>>
67using fast_set = std::set<T, Compare, memory::fast_allocator<T>>;
69template <
typename Key,
typename T,
class Compare = std::less<Key>>
70using fast_multimap = std::multimap<Key, T, Compare, memory::fast_allocator<std::pair<const Key, T>>>;
72template <
typename Key,
typename T,
class Compare = std::equal_to<Key>>
73using fast_unordered_map =
76template <
typename Key,
typename T,
class Compare = std::less<Key>>
77using fast_map = std::map<Key, T, Compare, memory::fast_allocator<std::pair<const Key, T>>>;
A simple GMA wrapper that conforms to the C++ Allocator trait spec (see: https://en....
Definition fast_allocator.h:17