Test of util::counter
and support utilities.
More...
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... | |
Test of util::counter
and support utilities.
This is a header-only library.
Definition in file counter.h.