#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
auto r =
kumi::record{
"a"_id = 1,
"b"_id =
'y',
"c"_id = 3.f,
"d"_id =
short{55}
,"e"_id = -8, "f"_id = 66., "g"_id = "Pete"};
std::cout << " Standard Windows " << "\n";
std::cout << w << "\n";
{
},w);
std::cout << r << "\n";
std::cout << " Windows with references " << "\n";
std::cout << w2 << "\n";
{
},w2);
std::cout << r << "\n";
}
decltype(auto) constexpr get(record< Ts... > &r) noexcept
Extracts the Ith field from a kumi::record.
Definition record.hpp:618
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36
constexpr auto values_of(T &&t) noexcept
Extracts the values of the fields of a kumi::product_type.
Definition tuple.hpp:772