forked from boostorg/unordered
documented ctors added in #160
This commit is contained in:
1 parent
3e4546465b
commit
0d8c02ba0e
6 files changed
+178
-2
No files matched your search
@@ -53,6 +53,8 @@ namespace boost {
|
||||
const allocator_type& a = allocator_type());
|
||||
xref:#unordered_multimap_copy_constructor[unordered_multimap](const unordered_multimap& other);
|
||||
xref:#unordered_multimap_move_constructor[unordered_multimap](unordered_multimap&& other);
|
||||
template<class InputIterator>
|
||||
xref:#unordered_multimap_iterator_range_constructor_with_allocator[unordered_multimap](InputIterator f, InputIterator l, const allocator_type& a);
|
||||
explicit xref:#unordered_multimap_allocator_constructor[unordered_multimap](const Allocator& a);
|
||||
xref:#unordered_multimap_copy_constructor_with_allocator[unordered_multimap](const unordered_multimap& other, const Allocator& a);
|
||||
xref:#unordered_multimap_move_constructor_with_allocator[unordered_multimap](unordered_multimap&& other, const Allocator& a);
|
||||
@@ -68,7 +70,9 @@ namespace boost {
|
||||
template<class InputIterator>
|
||||
xref:#unordered_multimap_iterator_range_constructor_with_bucket_count_and_hasher[unordered_multimap](InputIterator f, InputIterator l, size_type n, const hasher& hf,
|
||||
const allocator_type& a);
|
||||
xref:#unordered_multimap_initializer_list_constructor_with_bucket_count_and_allocator[unordered_multimap](std::initializer_list<value_type> il, size_type n, const allocator_type& a);
|
||||
xref:#unordered_multimap_initializer_list_constructor_with_allocator[unordered_multimap](std::initializer_list<value_type> il, const allocator_type& a);
|
||||
xref:#unordered_multimap_initializer_list_constructor_with_bucket_count_and_allocator[unordered_multimap](std::initializer_list<value_type> il, size_type n,
|
||||
const allocator_type& a);
|
||||
xref:#unordered_multimap_initializer_list_constructor_with_bucket_count_and_hasher_and_allocator[unordered_multimap](std::initializer_list<value_type> il, size_type n, const hasher& hf,
|
||||
const allocator_type& a);
|
||||
xref:#unordered_multimap_destructor[~unordered_multimap]();
|
||||
@@ -416,6 +420,19 @@ So, for example, you can't return the container from a function.
|
||||
|
||||
---
|
||||
|
||||
==== Iterator Range Constructor with Allocator
|
||||
```c++
|
||||
template<class InputIterator>
|
||||
unordered_multimap(InputIterator f, InputIterator l, const allocator_type& a);
|
||||
```
|
||||
|
||||
Constructs an empty container using `a` as the allocator, with the default hash function and key equality predicate and a maximum load factor of `1.0` and inserts the elements from `[f, l)` into it.
|
||||
|
||||
[horizontal]
|
||||
Requires:;; `hasher`, `key_equal` need to be https://en.cppreference.com/w/cpp/named_req/DefaultConstructible[DefaultConstructible^].
|
||||
|
||||
---
|
||||
|
||||
==== Allocator Constructor
|
||||
```c++
|
||||
explicit unordered_multimap(const Allocator& a);
|
||||
@@ -518,6 +535,19 @@ Requires:;; `key_equal` needs to be https://en.cppreference.com/w/cpp/named_req/
|
||||
|
||||
---
|
||||
|
||||
==== initializer_list Constructor with Allocator
|
||||
|
||||
```c++
|
||||
unordered_multimap(std::initializer_list<value_type> il, const allocator_type& a);
|
||||
```
|
||||
|
||||
Constructs an empty container using `a` as the allocator and a maximum load factor of 1.0 and inserts the elements from `il` into it.
|
||||
|
||||
[horizontal]
|
||||
Requires:;; `hasher` and `key_equal` need to be https://en.cppreference.com/w/cpp/named_req/DefaultConstructible[DefaultConstructible^].
|
||||
|
||||
---
|
||||
|
||||
==== initializer_list Constructor with Bucket Count and Allocator
|
||||
|
||||
```c++
|
||||
|
||||
Reference in new issue
Block a user