SlHelpers
Loading...
Searching...
No Matches
SlHelpers::EnumRange< Enum >::iterator Struct Reference

Iterator class to iterate over enum values. More...

#include <Enum.h>

Public Types

using iterator_category = std::forward_iterator_tag
 Iterator category for the enum range.
using difference_type = std::ptrdiff_t
 Difference type for the enum range.
using value_type = Enum
 Value type for the enum range.
using reference = Enum
 Reference type for the enum range.
using pointer = Enum *
 Pointer type for the enum range.

Public Member Functions

Enum operator* () const
 Dereference operator to get the current enum value.
iteratoroperator++ ()
 Pre-increment operator to move to the next enum value.
iterator operator++ (int)
 Post-increment operator to move to the next enum value.
bool operator== (const iterator &other) const
 Equality operator to compare two iterators.
bool operator!= (const iterator &other) const
 Inequality operator to compare two iterators.

Public Attributes

Underlying v
 Current value of the iterator.

Detailed Description

template<typename Enum>
struct SlHelpers::EnumRange< Enum >::iterator

Iterator class to iterate over enum values.


The documentation for this struct was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/slhelpers-20260723.5ab24d1-build/slhelpers-20260723.5ab24d1/include/helpers/Enum.h