3.6.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
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 >
constexpr fcppt::enum_::range< Enum >::range ( size_type  begin,
size_type  end 
)
constexprnoexcept

Member Function Documentation

◆ begin()

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

◆ end()

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

◆ size()

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