Constructs a tuple where the ith element is the tuple of all ith elements of ts...
- Parameters
-
t0 | Tuple to convert |
ts | Tuples to convert |
- Returns
- The tuple of all combination of elements from t0, ts...
Helper type
namespace kumi::result
{
template<product_type Tuple>
struct zip;
template<product_type Tuple>
using zip_t = typename zip<Tuple>::type;
}
constexpr auto zip(T0 const &t0, Ts const &...ts)
Constructs a tuple where the ith element is the tuple of all ith elements of ts...
Definition: zip.hpp:37
Computes the return type of a call to kumi::zip
Example
#include <kumi/tuple.hpp>
#include <iostream>
int main()
{
std::cout << r << "\n";
}
Fixed-size collection of heterogeneous values.
Definition: tuple.hpp:35