ModErn Text Analysis
META Enumerates Textual Applications
Static Public Member Functions | Static Public Attributes | List of all members
meta::hashing::key_traits< T > Struct Template Reference

A traits class indicating whether a type can be inlined as a key in a probing-based hash table. More...

#include <hash_traits.h>

Static Public Member Functions

static constexpr T sentinel ()
 

Static Public Attributes

static constexpr bool inlineable = std::is_integral<T>::value
 

Detailed Description

template<class T>
struct meta::hashing::key_traits< T >

A traits class indicating whether a type can be inlined as a key in a probing-based hash table.

The default implementation provided here allows all integral types to be inlined.

You should specialize this trait as you see fit to allow inlining of keys into the table for efficiency when it makes sense. Typically, keys are good to inline when they are small, but can be expensive to inline when they are large object (e.g. std::string).

The class provides the following members:


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