Callable object transposing a product type of product types by shifting elements in their transposed position always returning a tuple as the external product type.
- Note
- This function will issue a compile time error if the each element of the input product type are not themselves product types or if their size are not equal.
#include <kumi/algorithm/transpose.hpp>
template<product_type T>
constexpr transpose_t transpose
Callable object transposing a product type of product types by shifting elements in their transposed ...
Definition transpose.hpp:92
- t: Product Type to transpose
- A product type containing the transposed elements of t.
template<kumi::concepts::product_type T>
struct transpose
{
};
template<kumi::concepts::product_type T> using transpose_t = typename kumi::result::transpose<T>::type;
Computes the return type of a call to kumi::transpose
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
};
std::cout << r << "\n";
}
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:33
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
,
"second"_id =
kumi::record{
"d"_id=2,
"e"_id=
'b',
"f"_id=0.01 }
};
std::cout << r << "\n";
}
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36