enum_name
Loading...
Searching...
No Matches
Public Member Functions | List of all members
mgutility::enum_for_each< Enum > Class Template Reference

A class template for iterating over enum values. More...

#include <enum_for_each.hpp>

Public Member Functions

 enum_for_each ()=default
 Default constructor.
 
auto begin () -> enum_iter &
 Returns an iterator to the beginning of the enum range.
 
auto end () -> enum_iter &
 Returns an iterator to the end of the enum range.
 
auto size () -> std::size_t
 Returns the size of the enum range.
 

Detailed Description

template<typename Enum>
class mgutility::enum_for_each< Enum >

A class template for iterating over enum values.

Template Parameters
EnumThe enum type.

Member Function Documentation

◆ begin()

template<typename Enum >
auto mgutility::enum_for_each< Enum >::begin ( ) -> enum_iter &
inline

Returns an iterator to the beginning of the enum range.

Returns
A reference to the beginning iterator.

◆ end()

template<typename Enum >
auto mgutility::enum_for_each< Enum >::end ( ) -> enum_iter &
inline

Returns an iterator to the end of the enum range.

Returns
A reference to the end iterator.

◆ size()

template<typename Enum >
auto mgutility::enum_for_each< Enum >::size ( ) -> std::size_t
inline

Returns the size of the enum range.

Returns
The size of the enum range.

The documentation for this class was generated from the following file: