BloombergLP::bdlc::HashTable::insert

insert overloads

Synopses

Declared in <bdlc_hashtable.h>

Insert an element with the specified key into this object.

bool
insert(
    Handle* handle,
    KEY const& key);
» more...

Insert an element with the specified key and value.

bool
insert(
    Handle* handle,
    KEY const& key,
    VALUE const& value);
» more...

Return Value

true if the element was inserted, and false otherwise

Parameters

NameDescription
handlehandle loaded with the inserted element on success
keykey of the element to insert
valuevalue associated with key