Celeritas  0.5.0-86+4a8eea4
Classes | Typedefs | Functions
Range.hh File Reference
#include "detail/RangeImpl.hh"

Classes

class  celeritas::Range< T >
 Proxy container for iterating over a range of integral values. More...
 
class  celeritas::Count< T >
 Proxy container for an unbounded range with a given start value. More...
 

Typedefs

template<class T >
using celeritas::RangeIter = detail::range_iter< T >
 Publicly expose traits for countable (OpaqueId, enum, init) type T.
 

Functions

template<class T >
CELER_CONSTEXPR_FUNCTION Range< T > celeritas::range (T begin, T end)
 Return a range over fixed beginning and end values.
 
template<class T >
CELER_CONSTEXPR_FUNCTION Range< T > celeritas::range (T end)
 Return a range with the default start value (0 for numeric types)
 
template<class T >
CELER_CONSTEXPR_FUNCTION Count< T > celeritas::count ()
 Count upward from zero.
 
template<class T >
CELER_CONSTEXPR_FUNCTION Count< T > celeritas::count (T begin)
 Count upward from a value.