DelegateMQ
Loading...
Searching...
No Matches
xmap.h
Go to the documentation of this file.
1#ifndef _XMAP_H
2#define _XMAP_H
3
4#include "stl_allocator.h"
5#include <map>
6
7// xmap uses a fix-block memory allocator
8template <typename Key, typename Value, typename Alloc = stl_allocator<std::pair<const Key, Value>>>
9using xmap = std::map<Key, Value, std::less<Key>, Alloc>;
10
11template <typename Key, typename Value, typename Alloc = stl_allocator<std::pair<const Key, Value>>>
12using xmultimap = std::multimap<Key, Value, std::less<Key>, Alloc>;
13
14#if 0 // Deprecated
15template<class _Kty,
16 class _Ty,
17 class _Pr = std::less<_Kty>,
19 class xmap
20 : public std::map<_Kty, _Ty, _Pr, _Alloc>
21 {
22 };
23
24template<class _Kty,
25 class _Ty,
26 class _Pr = std::less<_Kty>,
28 class xmultimap
29 : public std::multimap<_Kty, _Ty, _Pr, _Alloc>
30 {
31 };
32#endif
33
34#endif
35
Definition stl_allocator.h:28
std::map< Key, Value, std::less< Key >, Alloc > xmap
Definition xmap.h:9
std::multimap< Key, Value, std::less< Key >, Alloc > xmultimap
Definition xmap.h:12