insert overloads

Synopses

Declared in <bdlcc_cache.h>

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

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

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

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

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

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

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

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

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

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

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

Parameters

Name

Description

key

key to insert

value

value associated with key

valuePtr

shared pointer to the value associated with key

Created with MrDocs