[#BloombergLP-bdlc-FlatHashSet_EntryUtil-constructFromKey] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet_EntryUtil.adoc[FlatHashSet_EntryUtil]::constructFromKey :relfileprefix: ../../../ :mrdocs: Construct an `ENTRY` in‐place from the specified key. == Synopsis Declared in `<bdlc_flathashset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class KEY_TYPE> static void constructFromKey( ENTRY* entry, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator, KEY_TYPE&& key); ---- == Description Load into the specified `entry` the `ENTRY` value comprised of the specified `key`, using the specified `allocator` to supply memory. `allocator` is ignored if the (template parameter) type `ENTRY` is not allocator aware. == Parameters [cols="1,4"] |=== | Name| Description | *entry* | address at which to construct the entry | *allocator* | allocator used to supply memory | *key* | key used to construct the entry |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#