4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::enum_::range< Enum > Class Template Reference

Detailed Description

template<typename Enum>
class fcppt::enum_::range< Enum >

A range over a contiguous enum.

Public Types

using value_type = Enum
 
using iterator = fcppt::enum_::iterator<Enum>
 
using const_iterator = iterator
 
using size_type = fcppt::enum_::size_type<Enum>
 

Public Member Functions

constexpr range (size_type begin, size_type end) noexcept
 
constexpr iterator begin () const noexcept
 
constexpr iterator end () const noexcept
 
constexpr size_type size () const noexcept
 

Member Typedef Documentation

◆ const_iterator

template<typename Enum >
using fcppt::enum_::range< Enum >::const_iterator = iterator

◆ iterator

template<typename Enum >
using fcppt::enum_::range< Enum >::iterator = fcppt::enum_::iterator<Enum>

◆ size_type

template<typename Enum >
using fcppt::enum_::range< Enum >::size_type = fcppt::enum_::size_type<Enum>

◆ value_type

template<typename Enum >
using fcppt::enum_::range< Enum >::value_type = Enum

Constructor & Destructor Documentation

◆ range()

template<typename Enum >
fcppt::enum_::range< Enum >::range ( size_type begin,
size_type end )
constexprnoexcept

Member Function Documentation

◆ begin()

template<typename Enum >
iterator fcppt::enum_::range< Enum >::begin ( ) const
nodiscardconstexprnoexcept

◆ end()

template<typename Enum >
iterator fcppt::enum_::range< Enum >::end ( ) const
nodiscardconstexprnoexcept

◆ size()

template<typename Enum >
size_type fcppt::enum_::range< Enum >::size ( ) const
nodiscardconstexprnoexcept