![]() |
Home | Libraries | People | FAQ | More |
Constructor.
template< class InputIt> object( InputIt first, InputIt last,std::size_tmin_capacity = 0,storage_ptrsp = {});
The object is constructed with the elements in the range {first, last), preserving order, using the specified
memory resource. If there are elements with duplicate keys; that is,
if multiple elements in the range have keys that compare equal, only
the first equivalent element will be inserted.
std::is_constructible_v< key_value_pair, std::iterator_traits<InputIt>::reference>
Linear in std::distance(first, last).
Strong guarantee. Calls to memory_resource::allocate
may throw.
|
Name |
Description |
|---|---|
|
|
An input iterator pointing to the first element to insert, or pointing to the end of the range. |
|
|
An input iterator pointing to the end of the range. |
|
|
The minimum number of elements for which capacity is guaranteed
without a subsequent reallocation. Upon construction, |
|
|
A pointer to the |
|
Type |
Description |
|---|---|
|
|
a type satisfying the requirements of InputIterator. |