Classes | Namespaces | Functions
counter.h File Reference

Test of util::counter and support utilities. More...

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

Go to the source code of this file.

Classes

class  util::count_iterator< T >
 An iterator dereferencing to a counter value. More...
 
class  util::details::infinite_endcount_iterator< T >
 Class used as end iterator (sentinel) for an infinite loop. More...
 

Namespaces

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

Functions

template<typename T >
bool util::details::operator!= (infinite_endcount_iterator< T > const &, count_iterator< T > const &)
 Never admit a infinite_endcount_iterator to be equal to anything else. More...
 
template<typename T >
bool util::details::operator!= (count_iterator< T > const &, infinite_endcount_iterator< T > const &)
 
template<typename T >
bool util::details::operator== (infinite_endcount_iterator< T > const &, count_iterator< T > const &)
 
template<typename T >
bool util::details::operator== (count_iterator< T > const &, infinite_endcount_iterator< T > const &)
 
Counted iterations
template<typename T >
auto util::counter (T begin, T end)
 Returns an object to iterate values from begin to end in a range-for loop. More...
 
template<typename T >
auto util::counter (T end)
 
template<typename T = std::size_t>
auto util::infinite_counter (T begin=T{})
 Version of util::counter() starting at begin and never ending. More...
 

Detailed Description

Test of util::counter and support utilities.

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 counter.h.