#include <kumi/kumi.hpp>
#include <iostream>
{
using parent::operator=;
};
inline constexpr my_id my_field{};
int main()
{
using namespace kumi::literals;
kumi::record r = {
"x"_id = 1,
"y"_id = 2.3, my_field =
'@' };
std::cout << r << "\n";
std::cout << r["x"_l] << "\n";
std::cout << r["y"_l] << "\n";
std::cout << r["mystery"_l] << "\n";
r["mystery"_l]++;
std::cout << r["mystery"_l] << "\n";
}
identifier definition class
Definition identifier.hpp:86
friend constexpr str to_str(identifier< ID, Checker > const &)
A checked field str representation is the underlying type, checker is ignored.
Definition identifier.hpp:91
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36
Static string used to create named fields.
Definition str.hpp:24