This templated utility provides methods to construct an ENTRY and a method to extract the key from an ENTRY (which is, identically, the ENTRY).

Synopsis

Declared in <bdlc_flathashset.h>

template<class ENTRY>
struct FlatHashSet_EntryUtil;

Static Member Functions

Name

Description

construct

Load into the specified entry the ENTRY value constructed from specified args, using the specified allocator to supply memory. allocator is ignored if the (template parameter) type ENTRY is not allocator aware.

constructFromKey

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.

key

Return the specified entry.

Created with MrDocs