KUMI v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches
Product Type Transformations

Algorithms applying transformation to product types. More...

Topics

 Record Type Specific Transformations
 Algorithms applying transformation to records.
 Tuple Type Specific Transformations
 Algorithms applying transformation to tuples.

Functions

template<typename Function, concepts::product_type T>
constexpr decltype(auto) kumi::apply (Function &&f, T &&t) noexcept(kumi_implementation_defined)
 Invoke the Callable object f with the elements of the product type unrolled as arguments.
template<typename Function, concepts::product_type T, concepts::product_type... Ts>
requires (concepts::compatible_product_types<T, Ts...>)
constexpr void kumi::for_each (Function f, T &&t, Ts &&... ts)
 Applies the Callable object f on each element of a product type. f is applied on the values if the given product_type is a record type.
template<concepts::product_type T, typename Function, concepts::sized_product_type< size_v< T > >... Ts>
requires (concepts::compatible_product_types<T, Ts...>)
constexpr auto kumi::map (Function f, T &&t0, Ts &&... others)
 Applies the Callable object f on each product types' elements.