Callable object constructing a tuple where the ith element is the product type of all ith elements of t0,ts...
On record types, this function operates on elements as if they were ordered. The considered order is the order of declaration.
- Note
- This function does not take part in overload resolution if the product types do not follow the same semantic.
- See also
- kumi::concepts::follows_same_semantic
- Note
- zip_max fills missing elements to reach the biggest product type size.
- See also
- zip
-
zip_min
#include <kumi/algorithm/zip.hpp>
template<product_type T, product_type... Ts>
constexpr auto zip_max(T && t, Ts &&... ts);
constexpr zip_max_t zip_max
Callable object constructing a tuple where the ith element is the product type of all ith elements of...
Definition zip.hpp:261
- t: Product type to convert
- ts: Product types to convert
- The tuple of all combination of elements from t0, ts...
template<kumi::concepts::product_type T0, kumi::concepts::product_type... Ts>
struct zip_max
{
using type =
decltype(
kumi::zip_max(std::declval<T0>(), std::declval<Ts>()...));
};
template<kumi::concepts::product_type T0, kumi::concepts::product_type... Ts>
using zip_max_t = typename kumi::result::zip_max<T0, Ts...>::type;
Computes the return type of a call to kumi::zip_max
#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
std::cout << r << "\n";
}
Fixed-size collection of heterogeneous values.
Definition tuple.hpp:33