#include <DataUtils.h>
A light structure to bind a return type and a key, e.g. for reading records and columns.
| TReturn | The desired return type |
| TKey | The key type, typically std::string or long |
TypedKeys should not be instantiated directly. Instead maker as() should be used for clarity, e.g.:
Public Types | |
| using | Return = TReturn |
| The return type. | |
| using | Key = TKey |
| The key type. | |
Public Member Functions | |
| TypedKey (TKey k) | |
| Constructor. More... | |
Public Attributes | |
| TKey | key |
| The key. | |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename TReturn > | |
| TypedKey< TReturn, long > | as (long key) |
Create a TypedKey where the key type is deduced from the parameter. More... | |
| template<typename TReturn > | |
| TypedKey< TReturn, long > | as (int key) |
Create a TypedKey where the key type is deduced from the parameter. More... | |
| template<typename TReturn > | |
| TypedKey< TReturn, std::string > | as (const std::string &key) |
Create a TypedKey where the key type is deduced from the parameter. More... | |
| template<typename TReturn > | |
| TypedKey< TReturn, std::string > | as (const char *key) |
Create a TypedKey where the key type is deduced from the parameter. More... | |