Implements a std::iterator_traits
class for scoped and non-scoped enum types. The documentation is found with the type trait IterableTraits, which needs to be specialized for template type TEnum. For other types, this class is not constructible.
TEnum | The enum type to iterate over. |
Definition at line 157 of file iterable.inl.
Inner Type Index: | |
class | TRandomAccessIterator |
Public Type Index: | |
using | ConstIterator = TRandomAccessIterator<const TEnum*, const TEnum&> |
The constant iterator exposed by this class. A Mutable version is not available. | |
Public Method Index: | |
EnumIterator ()=default | |
Default constructor. | |
ConstIterator | begin () const |
ConstIterator | end () const |
using alib::enumops::EnumIterator< TEnum >::ConstIterator = TRandomAccessIterator<const TEnum*, const TEnum&> |
The constant iterator exposed by this class. A Mutable version is not available.
Definition at line 384 of file iterable.inl.
|
inline |
Returns an iterator referring to the start of enumeration TEnum.
Definition at line 389 of file iterable.inl.
|
inline |
Returns an iterator referring the first illegal value of enumeration TEnum.
Definition at line 399 of file iterable.inl.