[#BloombergLP-bdlcc-Cache-insert-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::insert :relfileprefix: ../../../ :mrdocs: `insert` overloads == Synopses Declared in `<bdlcc_cache.h>` Same as the preceding overload, moving both `key` and `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-0b.adoc[insert]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<KEY>] key, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VALUE>] value); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-0b.adoc[_» more..._]# Same as the preceding overload, moving `key` into the cache. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-01.adoc[insert]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<KEY>] key, VALUE const& value); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-01.adoc[_» more..._]# Same as the preceding overload, moving `key` into the cache. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-0ce.adoc[insert]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<KEY>] key, xref:BloombergLP/bdlcc/Cache/ValuePtrType.adoc[ValuePtrType] const& valuePtr); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-0ce.adoc[_» more..._]# Same as the preceding overload, moving `value` into the cache. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-0c4.adoc[insert]( KEY const& key, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VALUE>] value); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-0c4.adoc[_» more..._]# Insert the specified `key` and its associated `value` into this cache. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-09.adoc[insert]( KEY const& key, VALUE const& value); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-09.adoc[_» more..._]# Insert the specified `key` and its associated `valuePtr` into this cache. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlcc/Cache/insert-0e.adoc[insert]( KEY const& key, xref:BloombergLP/bdlcc/Cache/ValuePtrType.adoc[ValuePtrType] const& valuePtr); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insert-0e.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *key* | key to insert | *value* | value associated with `key` | *valuePtr* | shared pointer to the value associated with `key` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#