KUMI
v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
◆
only
template<typename T>
kumi::only_t<T> kumi::only = {}
inline
constexpr
Option restricting an identifier to accept a single type
T
.
Template Parameters
T
Type that the parametrized identifier will accept.
#include <kumi/kumi.hpp>
#include <iostream>
using namespace
kumi::literals;
inline
constexpr
auto
char_value =
kumi::identifier
(
"character"
_id,
kumi::only<char>
);
int
main()
{
std::cout <<
kumi::record
{ char_value =
'Z'
} <<
"\n"
;
}
kumi::only
constexpr kumi::only_t< T > only
Option restricting an identifier to accept a single type T.
Definition
identifier.hpp:31
kumi::identifier
identifier definition class
Definition
identifier.hpp:86
kumi::record
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition
record.hpp:36
kumi