File Zip.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

Functions

template<typename RA, typename RB>
auto zip(RA &ra, RB &rb)

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

This is a very basic implementation for two ranges, but could relatively easily be extended with variadic templates.

Note

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

Template Parameters
  • RA – The first range type

  • RB – The second range type

Parameters
  • ra – The first range

  • rb – The second range