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);
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);
Move the specified key and its associated value into this cache. If key already exists, then its value will be replaced with value. Note that all the methods that take moved objects provide the basic but not the strong exception guarantee ‐‐ throws may occur after the objects are moved out of; the cache will not be modified, but key or value may be changed. Also note that key must be copyable, even if it is moved.
void
insert(
KEY const& key,
VALUE const& value);
Insert the specified key and its associated valuePtr into this cache. If key already exists, then its value will be replaced with value. Note that the method with key moved provides the basic but not the strong exception guarantee ‐‐ if a throw occurs, the cache will not be modified, but key may be changed. Also note that key must be copyable, even if it is moved.
void
insert(
KEY const& key,
ValuePtrType const& valuePtr);
Created with MrDocs