BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::FlatHashSet_EntryUtil< ENTRY > Struct Template Reference

#include <bdlc_flathashset.h>

Public Member Functions

template<class KEY >
void constructFromKey (ENTRY *entry, bslma::Allocator *allocator, BSLS_COMPILERFEATURES_FORWARD_REF(KEY) key)
 

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 ENTRY & key (const ENTRY &entry)
 Return the specified entry.
 

Detailed Description

template<class ENTRY>
struct bdlc::FlatHashSet_EntryUtil< ENTRY >

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

Member Function Documentation

◆ construct()

template<class ENTRY >
template<class... ARGS>
void bdlc::FlatHashSet_EntryUtil< 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() [1/2]

template<class ENTRY >
template<class KEY >
void bdlc::FlatHashSet_EntryUtil< ENTRY >::constructFromKey ( ENTRY *  entry,
bslma::Allocator allocator,
BSLS_COMPILERFEATURES_FORWARD_REF(KEY)  key 
)
inline

◆ constructFromKey() [2/2]

template<class ENTRY >
template<class KEY_TYPE >
static void bdlc::FlatHashSet_EntryUtil< ENTRY >::constructFromKey ( ENTRY *  entry,
bslma::Allocator allocator,
BSLS_COMPILERFEATURES_FORWARD_REF(KEY_TYPE)  key 
)
static

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

template<class ENTRY >
const ENTRY & bdlc::FlatHashSet_EntryUtil< ENTRY >::key ( const ENTRY &  entry)
inlinestatic

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