[#BloombergLP-bslstl-HashTable-06-tryEmplace-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable]::tryEmplace :relfileprefix: ../../../ :mrdocs: If a key equivalent to the specified `key` already exists in this hash‐table, load `false` into the specified `isInsertedFlag` and return a pointer to the existing entry. Otherwise, insert into this hash‐table a newly‐created `value_type` object, constructed from `key` and the specified `args`, load `true` into `isInsertedFlag` and return a pointer to the newly created entry. Use the optionally specified `hint` as a starting place for the search for the existing key. == Synopsis Declared in `<bslstl_hashtable.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class... ARGS> xref:BloombergLP/bslalg/BidirectionalLink.adoc[bslalg::BidirectionalLink]* tryEmplace( bool* isInsertedFlag, xref:BloombergLP/bslalg/BidirectionalLink.adoc[bslalg::BidirectionalLink]* hint, xref:BloombergLP/bslstl/HashTable-06/KeyType.adoc[KeyType] const& key, ARGS&&... args); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#