[#BloombergLP-bdlc-HashTable-insert-05] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/HashTable.adoc[HashTable]::insert :relfileprefix: ../../../ :mrdocs: `insert` overloads == Synopses Declared in `<bdlc_hashtable.h>` Insert an element with the specified `key` into this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlc/HashTable/insert-00.adoc[insert]( xref:BloombergLP/bdlc/HashTable/Handle.adoc[Handle]* handle, KEY const& key); ---- [.small]#xref:BloombergLP/bdlc/HashTable/insert-00.adoc[_» more..._]# Insert an element with the specified `key` and `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:BloombergLP/bdlc/HashTable/insert-0c.adoc[insert]( xref:BloombergLP/bdlc/HashTable/Handle.adoc[Handle]* handle, KEY const& key, VALUE const& value); ---- [.small]#xref:BloombergLP/bdlc/HashTable/insert-0c.adoc[_» more..._]# == Return Value `true` if the element was inserted, and `false` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *handle* | handle loaded with the inserted element on success | *key* | key of the element to insert | *value* | value associated with `key` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#