-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathmap
More file actions
40 lines (33 loc) · 958 Bytes
/
map
File metadata and controls
40 lines (33 loc) · 958 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
37
38
39
40
#include "iterator.h"
#include <memory>
#include <utility>
#include <bits/stl_function.h>
#include <empty.h>
namespace std {
template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>,
typename _Alloc = std::allocator<_Key>>
class multimap {
public:
typedef std::pair<const _Key, _Tp> value_type;
typedef std::__iterator<value_type> iterator;
typedef std::__iterator<value_type> const_iterator;
iterator begin();
iterator end();
const_iterator cbegin();
const_iterator cend();
multimap();
};
template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>,
typename _Alloc = std::allocator<_Key>>
class map {
public:
typedef std::pair<const _Key, _Tp> value_type;
typedef std::__iterator<value_type> iterator;
typedef std::__iterator<value_type> const_iterator;
iterator begin();
iterator end();
const_iterator cbegin();
const_iterator cend();
map();
};
} // namespace std