File Zip.hpp¶
-
namespace Acts
Note
This file is foreseen for the
Geometry
module to replaceExtent
Functions
-
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; }
Note
the behaviour is undefined if the ranges do not have equal range
- Template Parameters
R – The ranges type pack
- Parameters
r – The ranges parameter pack
-
template<typename ...R>