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