emplace_hint overloads

Synopses

Declared in <folly/container/sorted_vector_types.h>

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

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

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);

Return Value

An iterator to the inserted or existing element.

Parameters

Name

Description

hint

Position guess for where the element belongs.

value

The element to insert.

args

Arguments used to construct the element.

Created with MrDocs