bsl::unordered_multiset::insert

Insert a copy of value into this unordered multiset.

Synopsis

Declared in <bslstl_unorderedmultiset.h>

unordered_multiset<KEY, HASH, EQUAL, ALLOCATOR>::iterator
insert(value_type const& 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. Note that this method requires that the (template parameter) type KEY be copy-insertable into this unordered multiset (see {Requirements on KEY}).

Return Value

iterator to the newly inserted element

Parameters

NameDescription
valueelement to insert