From Jason Turner

[unord.multimap.overview]

Diff to HTML by rtfpessoa

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