namespace kumi::result
{
template<std::
size_t N, product_type>
struct windows;
template<std::size_t N, product_type T>
}
constexpr auto windows(T &&t)
Creates a kumi::tuple of product_types, each containing N consecutive elements from t....
Definition tiler.hpp:43
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
auto t =
kumi::tuple{1,
'y', 3.f,
short{55}, -8, 66.,
"Pete"};
std::cout << " Standard Windows " << "\n";
std::cout << w << "\n";
{
get<0>(tile)++;
},w);
std::cout << t << "\n";
std::cout << " Windows with references " << "\n";
std::cout << w2 << "\n";
{
get<0>(tile)++;
},w2);
std::cout << t << "\n";
}
constexpr auto to_ref(R &&r)
Creates a kumi::record of references given a reference to a kumi::record_type.
Definition record.hpp:413
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:29
#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";
}
constexpr auto values_of(T &&t) noexcept
Extracts the values of the fields of a kumi::product_type.
Definition meta.hpp:44
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
Fixed-size collection of heterogeneous fields necessarily named, names are unique.
Definition record.hpp:29