template<typename ID, typename Checker>
class kumi::identifier< ID, Checker >
identifier definition class
kumi::identifier defines an identifier, i.e. an entity that can receive values and can be stored as part of a product type. It is defined by a unique type ID which can be an actual type or generated from kumi::name and an optional checking operations that will validate the value passed to the identifier is acceptable.
kumi::identifier can also be used to define custom identifier type with specific behavior.
- Template Parameters
-
| ID | identifier type being defined |
| Checker | Potential type checker meta-function. By default, this is void to notify no check is performed. |
#include <kumi/kumi.hpp>
#include <iostream>
#include <string>
using namespace kumi::literals;
int main()
{
}
identifier definition class
Definition identifier.hpp:89
Compile-time text based identifier.
Definition identifier.hpp:165
Fixed-size collection of heterogeneous fields with distinct labels.
Definition record.hpp:36