BloombergLP::bdlc::FlatHashSet::insert

Insert the specified value, ignoring the insertion hint.

Synopsis

Declared in <bdlc_flathashset.h>

const_iterator
insert(
    const_iterator hint,
    bslmf::MovableRef<KEY> value);

Description

Insert the specified value into this set if the value does not already exist in this set; otherwise, this method has no effect. Return a const_iterator referring to the (possibly newly inserted) element in this set whose value is equivalent to that of the element to be inserted. The supplied const_iterator is ignored.

Return Value

iterator to the existing or newly inserted element

Parameters

NameDescription
hintignored hint iterator
valueelement to insert