-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathset
More file actions
36 lines (30 loc) · 888 Bytes
/
set
File metadata and controls
36 lines (30 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "iterator.h"
#include "memory.h"
#include "functional.h"
#include "empty.h"
namespace std {
template <typename _Key, typename _Compare = std::less<_Key>,
typename _Alloc = std::allocator<_Key>>
class set {
public:
typedef std::iterator<random_access_iterator_tag, _Key> iterator;
typedef std::iterator<random_access_iterator_tag, _Key> const_iterator;
iterator begin();
iterator end();
const_iterator cbegin();
const_iterator cend();
set();
};
template <typename _Key, typename _Compare = std::less<_Key>,
typename _Alloc = std::allocator<_Key>>
class multiset {
public:
typedef std::iterator<random_access_iterator_tag, _Key> iterator;
typedef std::iterator<random_access_iterator_tag, _Key> const_iterator;
iterator begin();
iterator end();
const_iterator cbegin();
const_iterator cend();
multiset();
};
} // namespace std