insertIfMissing overloads
Declared in <bslstl_hashtable.h>
Insert a default-mapped value for a movable key if missing.
bslalg::BidirectionalLink*
insertIfMissing(bslmf::MovableRef<NonConstKeyType> key);
» more...
Insert a default-mapped value for key if the key is missing.
bslalg::BidirectionalLink*
insertIfMissing(KeyType const& key);
» more...
Insert a movable value if no equivalent key is present.
bslalg::BidirectionalLink*
insertIfMissing(
bool* isInsertedFlag,
bslmf::MovableRef<ValueType> value);
» more...
Insert value if no equivalent key is present.
bslalg::BidirectionalLink*
insertIfMissing(
bool* isInsertedFlag,
ValueType const& value);
» more...
Insert a value from value if no equivalent key is present.
template<class SOURCE_TYPE>
bslalg::BidirectionalLink*
insertIfMissing(
bool* isInsertedFlag,
SOURCE_TYPE&& value);
» more...
key| Name | Description |
|---|---|
| key | movable key used to find or insert an element |
| isInsertedFlag | set to true if a new entry was inserted |
| value | movable value to insert if missing |