bsl::multimap::insert

insert overloads

Synopses

Declared in <bslstl_multimap.h>

Insert each element from values into this multimap.

void
insert(std::initializer_list<value_type> values);
» more...

Insert a copy of value into this multimap.

multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator
insert(value_type const& value);
» more...

Insert an element constructed from value.

template<class ALT_VALUE_TYPE>
iterator
insert(ALT_VALUE_TYPE&& value)
requires std::is_constructible<value_type,
                                             ALT_VALUE_TYPE&&>::value;
» more...

Insert a copy of value near hint.

multimap<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator
insert(
    const_iterator hint,
    value_type const& value);
» more...

Insert each element from [first, last)] into this multimap.

template<class INPUT_ITERATOR>
void
insert(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last);
» more...

Insert an element constructed from value near hint.

template<class ALT_VALUE_TYPE>
iterator
insert(
    const_iterator hint,
    ALT_VALUE_TYPE&& value)
requires std::is_constructible<value_type,
                                             ALT_VALUE_TYPE&&>::value;
» more...

Return Value

iterator referring to the newly inserted element

Parameters

NameDescription
valuesinitializer list of elements to insert
valueelement to copy-insert
hintiterator hint for the insertion position
firstbeginning of the range to insert
lastend of the range to insert