Try to emplace an element with a movable key.
Declared in <bslstl_map.h>
template<class... Args>
pair<map<KEY, VALUE, COMPARATOR, ALLOCATOR>::iterator, bool>
try_emplace(
BloombergLP::bslmf::MovableRef<KEY> key,
Args&&... args);
Same as the preceding try_emplace overload, for movable keys.
pair of iterator and whether a new element was inserted
| Name | Description |
|---|---|
| key | key to move into the new element |
| args | constructor arguments for the mapped value |