BloombergLP::bdlcc::Cache::insert

insert overloads

Synopses

Declared in <bdlcc_cache.h>

Same as the preceding overload, moving both key and value.

void
insert(
    bslmf::MovableRef<KEY> key,
    bslmf::MovableRef<VALUE> value);
» more...

Same as the preceding overload, moving key into the cache.

void
insert(
    bslmf::MovableRef<KEY> key,
    VALUE const& value);
» more...

Same as the preceding overload, moving key into the cache.

void
insert(
    bslmf::MovableRef<KEY> key,
    ValuePtrType const& valuePtr);
» more...

Same as the preceding overload, moving value into the cache.

void
insert(
    KEY const& key,
    bslmf::MovableRef<VALUE> value);
» more...

Insert the specified key and its associated value into this cache.

void
insert(
    KEY const& key,
    VALUE const& value);
» more...

Insert the specified key and its associated valuePtr into this cache.

void
insert(
    KEY const& key,
    ValuePtrType const& valuePtr);
» more...

Parameters

NameDescription
keykey to insert
valuevalue associated with key
valuePtrshared pointer to the value associated with key