3.0.0
Freundlich's C++ toolkit
Public Types | Public Member Functions
fcppt::int_range< Int > Class Template Reference

Detailed Description

template<typename Int>
class fcppt::int_range< Int >

A forward range over integers.

Public Types

typedef Int value_type
 
typedef fcppt::int_iterator< Int > iterator
 
typedef iterator const_iterator
 
typedef fcppt::type_iso::undecorated_type< Int > size_type
 

Public Member Functions

constexpr int_range (Int begin, Int end)
 Creates a range. More...
 
constexpr iterator begin () const
 
constexpr iterator end () const
 
constexpr size_type size () const
 

Member Typedef Documentation

◆ const_iterator

template<typename Int >
typedef iterator fcppt::int_range< Int >::const_iterator

◆ iterator

template<typename Int >
typedef fcppt::int_iterator< Int > fcppt::int_range< Int >::iterator

◆ size_type

template<typename Int >
typedef fcppt::type_iso::undecorated_type< Int > fcppt::int_range< Int >::size_type

◆ value_type

template<typename Int >
typedef Int fcppt::int_range< Int >::value_type

Constructor & Destructor Documentation

◆ int_range()

template<typename Int >
constexpr fcppt::int_range< Int >::int_range ( Int  begin,
Int  end 
)

Creates a range.

If end < begin the range will be empty.

Parameters
beginThe first element in the range
endThe element one past the end

Member Function Documentation

◆ begin()

template<typename Int >
constexpr iterator fcppt::int_range< Int >::begin ( ) const

◆ end()

template<typename Int >
constexpr iterator fcppt::int_range< Int >::end ( ) const

◆ size()

template<typename Int >
constexpr size_type fcppt::int_range< Int >::size ( ) const