bsl::hashtable::insert_unique

insert_unique overloads

Synopses

Declared in <bslstp_hashtable.h>

Insert the specified __obj if no equivalent element exists.

pair<iterator, bool>
insert_unique(value_type const& __obj);
» more...

Insert each value in the specified [__f, __l)] range uniquely.

template<class _InputIterator>
void
insert_unique(
    _InputIterator __f,
    _InputIterator __l);
» more...

Insert each value in the specified forward range uniquely.

template<class _ForwardIterator>
void
insert_unique(
    _ForwardIterator __f,
    _ForwardIterator __l,
    std::forward_iterator_tag const& __tag);
» more...

Insert each value in the specified input range uniquely.

template<class _InputIterator>
void
insert_unique(
    _InputIterator __f,
    _InputIterator __l,
    std::input_iterator_tag const& __tag);
» more...

Return Value

pair of an iterator to the element and whether insertion occurred

Parameters

NameDescription
__objvalue to insert
__fbeginning of the input range
__lend of the input range
__tagforward-iterator category tag (overload discriminator)