[#BloombergLP-bdlc-FlatHashTable-emplace]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable]::emplace
:relfileprefix: ../../../
:mrdocs:

Create an `ENTRY` object from the specified `args`, and attempt to add it to this flat hash table&period; Return a `bsl&colon;&colon;pair` containing an iterator to the newly inserted object and `true` if the element was added&period; If an entry with the same key already exists in this flat hash table, return an iterator to that entry and `false`&period; This method requires that the `ENTRY` be `copy&hyphen;constructible`&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class&period;&period;&period; ARGS&gt;
xref:bsl/pair-0b.adoc[bsl::pair&lt;FlatHashTable&lt;KEY, ENTRY, ENTRY&lowbar;UTIL, HASH, EQUAL&gt;::iterator, bool&gt;]
emplace(ARGS&&&period;&period;&period; args);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
