LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
enumerate.h File Reference

Definition of util::enumerate(). More...

#include "larcorealg/CoreUtils/counter.h"
#include "larcorealg/CoreUtils/zip.h"
#include <cstddef>
#include <utility>

Go to the source code of this file.

Namespaces

 util
 Namespace for general, non-LArSoft-specific utilities.
 

Functions

Enumerated iterations
template<std::size_t Lead, typename... Iterables>
auto util::enumerate (Iterables &&...iterables)
 Range-for loop helper tracking the number of iteration. More...
 
template<typename... Iterables>
auto util::enumerate (Iterables &&...iterables)
 This version of enumerate implicitly uses the first iterable as lead. More...
 

Detailed Description

Definition of util::enumerate().

Author
Gianluca Petrillo (petri.nosp@m.llo@.nosp@m.slac..nosp@m.stan.nosp@m.ford..nosp@m.edu)
Date
April 14, 2019

This is a header-only library.

Definition in file enumerate.h.