Constructors
Synopses
Declared in <bslstl_multimap.h>
Create an empty multimap.
multimap();
Create a multimap with the same value as original.
Create a multimap by moving from original.
multimap(BloombergLP::bslmf::MovableRef<multimap> original);
Create an empty multimap that uses basicAllocator.
explicit
multimap(ALLOCATOR const& basicAllocator);
Create a multimap by moving from original using basicAllocator.
multimap(
BloombergLP::bslmf::MovableRef<multimap> original,
ALLOCATOR const& basicAllocator);
Create a multimap from values using basicAllocator.
multimap(
std::initializer_list<value_type> values,
ALLOCATOR const& basicAllocator);
Create an empty multimap using comparator and basicAllocator.
explicit
multimap(
COMPARATOR const& comparator,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a multimap with the value of original using basicAllocator.
Create a multimap from values, optionally with comparator and allocator.
multimap(
std::initializer_list<value_type> values,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a multimap from [first, last)] using basicAllocator.
template<class INPUT_ITERATOR>
multimap(
INPUT_ITERATOR first,
INPUT_ITERATOR last,
ALLOCATOR const& basicAllocator);
Create a multimap from range using basicAllocator.
template<class RANGE>
multimap(
std::from_range_t tag,
RANGE&& range,
ALLOCATOR const& basicAllocator);
Create a multimap from [first, last)], optionally with comparator and allocator.
template<class INPUT_ITERATOR>
multimap(
INPUT_ITERATOR first,
INPUT_ITERATOR last,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a multimap from range, optionally with comparator and allocator.
template<class RANGE>
multimap(
std::from_range_t tag,
RANGE&& range,
COMPARATOR const& comparator = COMPARATOR(),
ALLOCATOR const& basicAllocator = ALLOCATOR());
Parameters
Name |
Description |
original |
multimap to copy |
basicAllocator |
allocator used to supply memory |
values |
initializer list of elements to insert |
comparator |
functor used to order keys |
first |
beginning of the range to copy |
last |
end of the range to copy |
tag |
disambiguation tag for range construction |
range |
input range of elements to insert |
Created with MrDocs