BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::FlatHashMap_EntryUtil< KEY, VALUE, ENTRY > Struct Template Reference

#include <bdlc_flathashmap.h>

Static Public Member Functions

template<class... ARGS>
static void construct (ENTRY *entry, bslma::Allocator *allocator, ARGS &&... args)
 
template<class KEY_TYPE >
static void constructFromKey (ENTRY *entry, bslma::Allocator *allocator, BSLS_COMPILERFEATURES_FORWARD_REF(KEY_TYPE) key)
 
static const KEY & key (const ENTRY &entry)
 Return the key of the specified entry.
 

Detailed Description

template<class KEY, class VALUE, class ENTRY>
struct bdlc::FlatHashMap_EntryUtil< KEY, VALUE, ENTRY >

This templated utility provides methods to construct an ENTRY and a method to extract the key from an ENTRY.

Member Function Documentation

◆ construct()

template<class KEY , class VALUE , class ENTRY >
template<class... ARGS>
void bdlc::FlatHashMap_EntryUtil< KEY, VALUE, ENTRY >::construct ( ENTRY *  entry,
bslma::Allocator allocator,
ARGS &&...  args 
)
inlinestatic

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()

template<class KEY , class VALUE , class ENTRY >
template<class KEY_TYPE >
void bdlc::FlatHashMap_EntryUtil< KEY, VALUE, ENTRY >::constructFromKey ( ENTRY *  entry,
bslma::Allocator allocator,
BSLS_COMPILERFEATURES_FORWARD_REF(KEY_TYPE)  key 
)
inlinestatic

Load into the specified entry the ENTRY value comprised of the specified key and a default constructed VALUE, using the specified allocator to supply memory. allocator is ignored if the (template parameter) type ENTRY is not allocator aware.

◆ key()

template<class KEY , class VALUE , class ENTRY >
const KEY & bdlc::FlatHashMap_EntryUtil< KEY, VALUE, ENTRY >::key ( const ENTRY &  entry)
inlinestatic

The documentation for this struct was generated from the following file: