Definitions of kumi::record and associated functions.
More...
Definitions of kumi::record and associated functions.
◆ tie_as_record
| tie_as_record_t<Fields...> kumi::tie_as_record {} |
|
inlineconstexprnodiscard |
Creates a kumi::record of lvalue references to its arguments.
{
}
Concept specifying a type represents an identifier.
Definition concepts.hpp:204
Main KUMI namespace.
Definition algorithm.hpp:11
- Fields : Non type template parameters names to associate with each element.
- ts: Zero or more lvalue arguments to construct the record from.
#include <kumi/kumi.hpp>
#include <iostream>
using namespace kumi::literals;
{
return kumi::record{
"i"_id = 1,
"d"_id = 2.3,
"f"_id = 4.56f};
}
int main()
{
int i;
double d;
float f;
std::cout << i << " " << d << " " << f << "\n";
}
constexpr generate_t< N > generate
Definition generate.hpp:105
Fixed-size collection of heterogeneous fields with distinct labels.
Definition record.hpp:36