This file provides the prototype for setting default data types. More...
#include "viennadata/forwards.h"
Go to the source code of this file.
Data Structures | |
struct | default_data_for_key< KeyType > |
A traits class that specifies the default data type for a key. By default, no key type has a default data type. More... | |
Namespaces | |
namespace | viennadata |
namespace | viennadata::config |
Defines | |
#define | VIENNADATA_ENABLE_DEFAULT_DATA_TYPE_FOR_KEY(arg_KEYCLASS, arg_DATACLASS) |
A convenience macro for default data types: arg_KEYCLASS denotes the key type, arg_DATACLASS denotes the data type. |
This file provides the prototype for setting default data types.
#define VIENNADATA_ENABLE_DEFAULT_DATA_TYPE_FOR_KEY | ( | arg_KEYCLASS, | ||
arg_DATACLASS | ||||
) |
namespace viennadata { namespace config { \ template <> struct default_data_for_key<arg_KEYCLASS> { typedef arg_DATACLASS type; }; \ } }
A convenience macro for default data types: arg_KEYCLASS denotes the key type, arg_DATACLASS denotes the data type.