Converts a kumi::tuple to an instance of an arbitrary type.
Constructs an instance of Type by passing elements of t to the appropriate constructor.
#include <kumi/product_types/tuple.hpp>
template<typename Type, product_type T>
- An instance of Type constructed from each element of t in order.
#include <kumi/kumi.hpp>
#include <iostream>
#include <string>
struct my_struct
{
int i;
float f;
};
int main()
{
std::cout << a << "\n";
std::cout << b.i << ' ' << b.f << ' ' << b.name << "\n";
}
Compile-time text based identifier.
Definition identifier.hpp:162