bsl::unordered_multimap::insert

Insert a value_type constructed from value.

Synopsis

Declared in <bslstl_unorderedmultimap.h>

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

Description

Insert into this unordered multimap a value_type object created from the specified value, and return an iterator referring to the newly inserted value_type object. This method requires that the (template parameter) types KEY and VALUE both be move-insertable into this unordered multimap (see {Requirements on KEY and VALUE}), and the value_type be constructible from the (template parameter) ALT_VALUE_TYPE.

Return Value

iterator referring to the newly inserted element

Parameters

NameDescription
valuesource used to construct the inserted element