3.8.0
Freundlich's C++ toolkit
Classes | Functions
fcppt.range

Description

Range utilities.

Classes

struct  fcppt::range::hash< Type >
 Hashes a range. More...
 

Functions

template<typename Range >
auto fcppt::range::begin (Range &_range)
 Calls begin via ADL. More...
 
template<typename Range >
bool fcppt::range::empty (Range const &_range)
 Tests if a range is empty. More...
 
template<typename Range >
auto fcppt::range::end (Range &_range)
 Calls end via ADL. More...
 
template<typename Iterator >
fcppt::iterator::range< Iterator > fcppt::range::from_pair (std::pair< Iterator, Iterator > const &_range)
 Creates a range from a std::pair. More...
 
template<typename Range >
bool fcppt::range::singular (Range const &_range)
 Tests if a range consists of a single element. More...
 
template<typename Range >
auto fcppt::range::size (Range const &_range)
 Returns the size of a range. More...
 

Function Documentation

◆ begin()

template<typename Range >
auto fcppt::range::begin ( Range &  _range)

Calls begin via ADL.

◆ empty()

template<typename Range >
bool fcppt::range::empty ( Range const &  _range)
inline

Tests if a range is empty.

◆ end()

template<typename Range >
auto fcppt::range::end ( Range &  _range)

Calls end via ADL.

◆ from_pair()

template<typename Iterator >
fcppt::iterator::range<Iterator> fcppt::range::from_pair ( std::pair< Iterator, Iterator > const &  _range)

Creates a range from a std::pair.

◆ singular()

template<typename Range >
bool fcppt::range::singular ( Range const &  _range)

Tests if a range consists of a single element.

◆ size()

template<typename Range >
auto fcppt::range::size ( Range const &  _range)
inline

Returns the size of a range.