insert overloads

Synopses

Declared in <bdlc_hashtable.h>

Insert an element with the specified key into this object; load a handle to the new element into the specified handle. Return true if successful, and false otherwise. The behavior is undefined unless key does not evaluate to a "null" or "removed" bucket, as defined by the parameterized TRAITS (see the component‐level documentation for more details). Note that this method will fail to compile unless the VALUE parameter is bslmf::Nil.

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

Insert an element with the specified key and the specified value into this object; load a handle to the new element into the specified handle. Return true if successful, and false otherwise. The behavior is undefined unless key and value do not evaluate to a "null" or "removed" bucket, as defined by the parameterized TRAITS (see the component‐level documentation for more details). This method will fail to compile unless the VALUE parameter is not bslmf::Nil.

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

Created with MrDocs