From Jason Turner

[unord.map.overview]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp6z7zcqab/{from.md → to.md} +22 -5
tmp/tmp6z7zcqab/{from.md → to.md} RENAMED
@@ -33,24 +33,25 @@ namespace std {
33
  typedef std::pair<const Key, T> value_type;
34
  typedef T mapped_type;
35
  typedef Hash hasher;
36
  typedef Pred key_equal;
37
  typedef Allocator allocator_type;
38
- typedef typename allocator_type::pointer pointer;
39
- typedef typename allocator_type::const_pointer const_pointer;
40
- typedef typename allocator_type::reference reference;
41
- typedef typename allocator_type::const_reference const_reference;
42
  typedef implementation-defined size_type;
43
  typedef implementation-defined difference_type;
44
 
45
  typedef implementation-defined iterator;
46
  typedef implementation-defined const_iterator;
47
  typedef implementation-defined local_iterator;
48
  typedef implementation-defined const_local_iterator;
49
 
50
  // construct/destroy/copy
51
- explicit unordered_map(size_type n = see below,
 
52
  const hasher& hf = hasher(),
53
  const key_equal& eql = key_equal(),
54
  const allocator_type& a = allocator_type());
55
  template <class InputIterator>
56
  unordered_map(InputIterator f, InputIterator l,
@@ -66,10 +67,26 @@ namespace std {
66
  unordered_map(initializer_list<value_type>,
67
  size_type = see below,
68
  const hasher& hf = hasher(),
69
  const key_equal& eql = key_equal(),
70
  const allocator_type& a = allocator_type());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  ~unordered_map();
72
  unordered_map& operator=(const unordered_map&);
73
  unordered_map& operator=(unordered_map&&);
74
  unordered_map& operator=(initializer_list<value_type>);
75
  allocator_type get_allocator() const noexcept;
 
33
  typedef std::pair<const Key, T> value_type;
34
  typedef T mapped_type;
35
  typedef Hash hasher;
36
  typedef Pred key_equal;
37
  typedef Allocator allocator_type;
38
+ typedef typename allocator_traits<Allocator>::pointer pointer;
39
+ typedef typename allocator_traits<Allocator>::const_pointer const_pointer;
40
+ typedef value_type& reference;
41
+ typedef const value_type& const_reference;
42
  typedef implementation-defined size_type;
43
  typedef implementation-defined difference_type;
44
 
45
  typedef implementation-defined iterator;
46
  typedef implementation-defined const_iterator;
47
  typedef implementation-defined local_iterator;
48
  typedef implementation-defined const_local_iterator;
49
 
50
  // construct/destroy/copy
51
+ unordered_map();
52
+ explicit unordered_map(size_type n,
53
  const hasher& hf = hasher(),
54
  const key_equal& eql = key_equal(),
55
  const allocator_type& a = allocator_type());
56
  template <class InputIterator>
57
  unordered_map(InputIterator f, InputIterator l,
 
67
  unordered_map(initializer_list<value_type>,
68
  size_type = see below,
69
  const hasher& hf = hasher(),
70
  const key_equal& eql = key_equal(),
71
  const allocator_type& a = allocator_type());
72
+ unordered_map(size_type n, const allocator_type& a)
73
+ : unordered_map(n, hasher(), key_equal(), a) { }
74
+ unordered_map(size_type n, const hasher& hf, const allocator_type& a)
75
+ : unordered_map(n, hf, key_equal(), a) { }
76
+ template <class InputIterator>
77
+ unordered_map(InputIterator f, InputIterator l, size_type n, const allocator_type& a)
78
+ : unordered_map(f, l, n, hasher(), key_equal(), a) { }
79
+ template <class InputIterator>
80
+ unordered_map(InputIterator f, InputIterator l, size_type n, const hasher& hf,
81
+ const allocator_type& a)
82
+ : unordered_map(f, l, n, hf, key_equal(), a) { }
83
+ unordered_map(initializer_list<value_type> il, size_type n, const allocator_type& a)
84
+ : unordered_map(il, n, hasher(), key_equal(), a) { }
85
+ unordered_map(initializer_list<value_type> il, size_type n, const hasher& hf,
86
+ const allocator_type& a)
87
+ : unordered_map(il, n, hf, key_equal(), a) { }
88
  ~unordered_map();
89
  unordered_map& operator=(const unordered_map&);
90
  unordered_map& operator=(unordered_map&&);
91
  unordered_map& operator=(initializer_list<value_type>);
92
  allocator_type get_allocator() const noexcept;