folly::sorted_vector_set::emplace_hint

emplace_hint overloads

Synopses

Declared in <folly/container/sorted_vector_types.h>

Inserts value near hint if it is absent; equivalent to insert.

iterator
emplace_hint(
    const_iterator hint,
    value_type const& value);
» more...

Inserts value near hint if it is absent; equivalent to insert.

iterator
emplace_hint(
    const_iterator hint,
    value_type&& value);
» more...

emplace_hint isn't better than insert for sorted_vector_set, but aids compatibility

template<typename... Args>
iterator
emplace_hint(
    const_iterator hint,
    Args&&... args);
» more...

Return Value

An iterator to the inserted or existing element.

Parameters

NameDescription
hintPosition guess for where the element belongs.
valueThe element to insert.
argsArguments used to construct the element.