bsl::multiset::insert

insert overloads

Synopses

Declared in <bslstl_multiset.h>

Insert a movable value into this multiset.

multiset<KEY, COMPARATOR, ALLOCATOR>::iterator
insert(BloombergLP::bslmf::MovableRef<value_type> value);
» more...

Insert each element from the values initializer list.

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

Insert a copy of value into this multiset.

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

Insert a movable value near hint.

multiset<KEY, COMPARATOR, ALLOCATOR>::iterator
insert(
    const_iterator hint,
    BloombergLP::bslmf::MovableRef<value_type> value);
» more...

Insert a copy of value near hint.

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

Insert each element in the range [first, last)].

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

Return Value

iterator referring to the newly inserted element

Parameters

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