Callable object returning a product type containing the values of the first occurence of each type in t.
On record types, this function operates on the underlying values, not on the fields themselves.
#include <kumi/algorithm/unique.hpp>
template<product_type T>
constexpr all_unique_t all_unique
Callable object returning a product type containing the values of the first occurence of each type in...
Definition unique.hpp:140
- t: Product Type to process
- A product type built by keeping the first occurrence of every distinct element type in t.
template<kumi::concepts::product_type T>
struct all_unique
{
};
template<kumi::concepts::product_type T> using all_unique_t = typename kumi::result::all_unique<T>::type;
Computes the return type of a call to kumi::all_unique
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
tuple a = {1, 2,
'x', 3, 1.f, 2.f};
}
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:33
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
auto r =
kumi::record{
"a"_id = 1,
"b"_id = 2,
"c"_id =
'x',
"d"_id = 3,
"e"_id = 1.f,
"f"_id = 2.f};
}
Fixed-size collection of heterogeneous tagged fields, tags are unique.
Definition record.hpp:36