namespace kumi::result
{
template<std::
size_t N, product_type>
struct chunks;
template<std::size_t N, product_type T>
}
constexpr auto chunks(T &&t)
Creates a kumi::tuple of product_types, each containing N consecutive elements from t....
Definition tiler.hpp:83
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
auto t =
kumi::tuple{1,
'y', 3.f,
short{55}, -8, 66.,
"Pete"};
std::cout << " Standard Chunks " << "\n";
std::cout << c << "\n";
{
get<0>(tile)++;
},c);
std::cout << t << "\n";
std::cout << " Chunks with references " << "\n";
std::cout << c2 << "\n";
{
get<0>(tile)++;
},c2);
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 t =
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 Chunks " << "\n";
std::cout << c << "\n";
{
},c);
std::cout << t << "\n";
std::cout << " Chunks with references " << "\n";
std::cout << c2 << "\n";
{
},c2);
std::cout << t << "\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