bsl::unordered_multiset::insert

Move-insert value into this unordered multiset.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::iterator
insert(BloombergLP::bslmf::MovableRef<value_type> value);

Description

Insert the specified value into this unordered multiset. If one or more keys equivalent to value already exist in this unordered multiset, this method is guaranteed to insert value in a position contiguous to one of those equivalent keys. Return an iterator referring to the newly inserted value_type object that is equivalent to value. This method requires that the (template parameter) type KEY be move-insertable into this unordered multiset (see {Requirements on KEY}).

Return Value

iterator to the newly inserted element

Parameters

NameDescription
valueelement to move-insert