10 #ifndef LARCOREALG_COREUTILS_ENUMERATE_H 11 #define LARCOREALG_COREUTILS_ENUMERATE_H 64 template <std::size_t Lead,
typename... Iterables>
67 return zip<Lead + 1>(
infinite_counter(), std::forward<Iterables>(iterables)...);
71 template <
typename... Iterables>
74 return enumerate<0U>(std::forward<Iterables>(iterables)...);
82 #endif // LARCOREALG_COREUTILS_ENUMERATE_H Definition of util::zip().
Namespace for general, non-LArSoft-specific utilities.
auto infinite_counter(T begin=T{})
Version of util::counter() starting at begin and never ending.
auto enumerate(Iterables &&...iterables)
Range-for loop helper tracking the number of iteration.
Test of util::counter and support utilities.