Public Types

key_dispatch< KeyType > Struct Template Reference

A traits class that specifies whether data is accessed using full key dispatches (object and type), or using the key type only. More...

#include <key_dispatch.hpp>

Public Types

typedef full_key_dispatch_tag tag

Detailed Description

template<typename KeyType>
struct viennadata::config::key_dispatch< KeyType >

A traits class that specifies whether data is accessed using full key dispatches (object and type), or using the key type only.

For changing the default full dispatch to a type-based dispatch, overload this class appropriately E.g. to use a type-based dispatch for keys of type QuickKey, write

template <> struct key_dispatch<QuickKey> { typedef type_key_dispatch_tag tag; };

Mind that this overload has to be placed in namespace viennadata.

Template Parameters:
KeyType The type of the key for which the dispatch scheme is specified.

Member Typedef Documentation


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