Construct an ENTRY in-place from the specified key.
Declared in <bdlc_flathashset.h>
template<class KEY_TYPE>
static
void
constructFromKey(
ENTRY* entry,
bslma::Allocator* allocator,
KEY_TYPE&& key);
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.
| Name | Description |
|---|---|
| entry | address at which to construct the entry |
| allocator | allocator used to supply memory |
| key | key used to construct the entry |