File Zip.hpp

namespace Acts


This file is foreseen for the Geometry module to replace Extent


template<typename ...R>
auto zip(R&&... r)

Function that allows to zip some ranges to be used in a range-based for loop.

When wanting to mutate the entries, the result must be captured by value:

for(auto [a, b, c] : zip(ra, rb, rc)) { a+=2; }


the behaviour is undefined if the ranges do not have equal range

Template Parameters

R – The ranges type pack


r – The ranges parameter pack