emplace overloads
Declared in <folly/container/sorted_vector_types.h>
Inserts value if it is absent; equivalent to insert.
std::pair<iterator, bool>
emplace(value_type const& value);
» more...
Inserts value if it is absent; equivalent to insert.
std::pair<iterator, bool>
emplace(value_type&& value);
» more...
emplace isn't better than insert for sorted_vector_set, but aids compatibility
template<typename... Args>
std::pair<iterator, bool>
emplace(Args&&... args);
» more...
A pair of the element position and whether it was inserted.
| Name | Description |
|---|---|
| value | The element to insert. |
| args | Arguments used to construct the element. |