KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches

Option restricting an identifier to accept a single type T. More...

Variables

template<typename T>
constexpr kumi::only_t< T > kumi::only = {}

Detailed Description

Option restricting an identifier to accept a single type T.

Variable Documentation

◆ only

template<typename T>
kumi::only_t<T> kumi::only = {}
inlineconstexpr
Template Parameters
TType 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";
}
constexpr kumi::only_t< T > only
Definition identifier.hpp:34
identifier definition class
Definition identifier.hpp:89
Fixed-size collection of heterogeneous fields with distinct labels.
Definition record.hpp:36