SlHelpers
Loading...
Searching...
No Matches
SlHelpers::EnumRange< Enum > Class Template Reference

Helper class to iterate over enum values from Enum::First to Enum::Last. More...

#include <Enum.h>

Classes

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

Public Types

using Underlying = std::underlying_type_t<Enum>
 Type of the underlying enum values.
using value_type = Enum
 Type of the enum values in the range.
using const_iterator = iterator
 Type of the iterator for the enum range.

Public Member Functions

 EnumRange ()
 Constructs an EnumRange from Enum::First to Enum::Last.
 EnumRange (Enum first, Enum last)
 Constructs an EnumRange from the specified first and last enum values.
iterator begin () const
 Returns an iterator to the beginning of the enum range.
iterator end () const
 Returns an iterator to the end of the enum range.

Detailed Description

template<typename Enum>
requires std::is_enum_v<Enum>
class SlHelpers::EnumRange< Enum >

Helper class to iterate over enum values from Enum::First to Enum::Last.


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