DefaultMap< OutputType, isBasic > Struct Template Reference

Meta-function which defines Traits' default map type. More...

#include <keyvalue/key/map/Default.h>


Detailed Description

template<typename OutputType, int isBasic>
struct keyvalue::key::DefaultMap< OutputType, isBasic >

Meta-function which defines Traits' default map type.

The selected map is defined by parameter Type. If it is 0 then NoMap<OutputType> is selected. If it is 1, then FlagMap<OutputType> is selected. Finally if it is 2, then ObjectMap<OutputType> is chosen.

Parameters:
OutputType : (template parameter) See Traits documentation;
Type : (template parameter) Defines if OutputType is basic, enum or object type. It has a default value which must not be changed.
Return values:
Map_ : The selected map.