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

Definition of util::get_elements() and util::get_const_elements(). More...

#include "larcorealg/CoreUtils/StdUtils.h"
#include "larcorealg/CoreUtils/span.h"
#include <cstddef>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  util::details::get_elements_impl< Coll, First, Others >
 

Namespaces

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

Functions

Transformed iterations
template<std::size_t... Indices, typename Coll >
decltype(auto) util::get_elements (Coll &&coll)
 Range-for loop helper iterating across some of the element of each value in the specified collection. More...
 
template<std::size_t... Indices, typename Coll >
decltype(auto) util::get_const_elements (Coll &&coll)
 Range-for loop helper iterating across the constant values of the specified collection. More...
 

Detailed Description

Definition of util::get_elements() and util::get_const_elements().

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

This is a header-only library.

Definition in file get_elements.h.