Creates a record object, deducing the target type from the types of arguments.
#include <kumi/kumi.hpp>
#include <functional>
#include <iostream>
int main()
{
using namespace kumi::literals;
int k = 99;
auto t =
kumi::make_record(
"x"_id = 1,
"y"_id = 2.3,
"z"_id = 4.5f,
"t"_id =
'@',
"m"_id = std::ref(k));
std::cout << t << "\n";
std::cout << k << "\n";
}
constexpr auto make_record(Ts &&... ts) -> record< std::unwrap_ref_decay_t< Ts >... >
Creates a record object, deducing the target type from the types of arguments.
Definition record.hpp:396
constexpr decltype(auto) get(record< Ts... > &&r) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition record.hpp:506