E.V.E  0.1-beta

◆ zip

eve::algo::views::zip = function_with_traits<zip_>
inlineconstexpr

#include <eve/algo/views/zip.hpp>

Given relaxed_iterors and relaxed ranges, zips them together (creates a single object). If at least one component is a relaxed_range - result is a zip_range, otherwise it's zip_iterator. All range compinents have to have the same length. NOTE: uses range_ref inside, so never owns/copies any elements.

Supports zip[eve::algo::force_type<T>], zip[eve::algo::common_type<T>], zip[common_with_types<Ts...>]traits. force_type<T>will convert every component to the type <T>. common_typeandcommon_with_types` will compute the common type (maybe including extra provided), and convert to that.

Required header: #include <eve/algo/views/zip.hpp>

Has a shorthand eve::views::zip in <eve/views/zip.hpp>.