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
@@ -73,6 +73,8 @@ namespace boost {
|
||||
const allocator_type& a = allocator_type());
|
||||
xref:#unordered_flat_map_copy_constructor[unordered_flat_map](const unordered_flat_map& other);
|
||||
xref:#unordered_flat_map_move_constructor[unordered_flat_map](unordered_flat_map&& other);
|
||||
template<class InputIterator>
|
||||
xref:#unordered_flat_map_iterator_range_constructor_with_allocator[unordered_flat_map](InputIterator f, InputIterator l, const allocator_type& a);
|
||||
explicit xref:#unordered_flat_map_allocator_constructor[unordered_flat_map](const Allocator& a);
|
||||
xref:#unordered_flat_map_copy_constructor_with_allocator[unordered_flat_map](const unordered_flat_map& other, const Allocator& a);
|
||||
xref:#unordered_flat_map_move_constructor_with_allocator[unordered_flat_map](unordered_flat_map&& other, const Allocator& a);
|
||||
@@ -88,6 +90,7 @@ namespace boost {
|
||||
template<class InputIterator>
|
||||
xref:#unordered_flat_map_iterator_range_constructor_with_bucket_count_and_hasher[unordered_flat_map](InputIterator f, InputIterator l, size_type n, const hasher& hf,
|
||||
const allocator_type& a);
|
||||
xref:#unordered_flat_map_initializer_list_constructor_with_allocator[unordered_flat_map](std::initializer_list<value_type> il, const allocator_type& a);
|
||||
xref:#unordered_flat_map_initializer_list_constructor_with_bucket_count_and_allocator[unordered_flat_map](std::initializer_list<value_type> il, size_type n,
|
||||
const allocator_type& a);
|
||||
xref:#unordered_flat_map_initializer_list_constructor_with_bucket_count_and_hasher_and_allocator[unordered_flat_map](std::initializer_list<value_type> il, size_type n, const hasher& hf,
|
||||
@@ -368,6 +371,19 @@ The hash function, predicate and allocator are moved-constructed from `other`.
|
||||
|
||||
---
|
||||
|
||||
==== Iterator Range Constructor with Allocator
|
||||
```c++
|
||||
template<class InputIterator>
|
||||
unordered_flat_map(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 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_flat_map(Allocator const& a);
|
||||
@@ -469,6 +485,19 @@ Requires:;; `key_equal` needs to be https://en.cppreference.com/w/cpp/named_req/
|
||||
|
||||
---
|
||||
|
||||
==== initializer_list Constructor with Allocator
|
||||
|
||||
```c++
|
||||
unordered_flat_map(std::initializer_list<value_type> il, const allocator_type& a);
|
||||
```
|
||||
|
||||
Constructs an empty container using `a` and default hash function and key equality predicate, 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