3.0.0
Freundlich's C++ toolkit
Classes | Typedefs | Functions
fcppt::iterator Namespace Reference

Classes

class  base
 A template for implementing iterators. More...
 
struct  is_types
 
class  range
 A range formed from two iterators. More...
 
struct  types
 The types passed to fcppt::iterator::base. More...
 
struct  types< Derived, ValueType, Reference, DifferenceType, IteratorCategory >>
 

Typedefs

template<typename Category , typename CategoryRef >
using category_at_least = std::is_base_of< CategoryRef, Category >
 Checks if an iterator category includes another. More...
 
template<typename Derived , typename Adapted >
using types_from = fcppt::iterator::types< Derived, typename std::iterator_traits< Adapted >::value_type, typename std::iterator_traits< Adapted >::reference, typename std::iterator_traits< Adapted >::difference_type, typename std::iterator_traits< Adapted >::iterator_category >
 

Functions

template<typename Range >
fcppt::iterator::range< fcppt::container::to_iterator_type< Range >> adapt_range (Range &_range)
 Turns a range into an fcppt::iterator::range. More...
 
template<typename Types >
void swap (fcppt::iterator::base< Types > &, fcppt::iterator::base< Types > &)
 
template<typename Types >
fcppt::iterator::base< Types >::derived operator+ (typename fcppt::iterator::base< Types >::difference_type, fcppt::iterator::base< Types > const &)
 
template<typename Types >
bool operator< (fcppt::iterator::base< Types > const &, fcppt::iterator::base< Types > const &)
 
template<typename Types >
bool operator> (fcppt::iterator::base< Types > const &, fcppt::iterator::base< Types > const &)
 
template<typename Types >
bool operator<= (fcppt::iterator::base< Types > const &, fcppt::iterator::base< Types > const &)
 
template<typename Types >
bool operator>= (fcppt::iterator::base< Types > const &, fcppt::iterator::base< Types > const &)
 
template<typename Iterator >
fcppt::iterator::range< Iterator > make_range (Iterator const _begin, Iterator const _end)
 Makes an iterator range. More...
 
template<typename Iterator >
bool operator== (fcppt::iterator::range< Iterator > const &_left, fcppt::iterator::range< Iterator > const &_right)
 
template<typename Iterator >
bool operator!= (fcppt::iterator::range< Iterator > const &_left, fcppt::iterator::range< Iterator > const &_right)
 

Typedef Documentation

◆ types_from

template<typename Derived , typename Adapted >
using fcppt::iterator::types_from = typedef fcppt::iterator::types< Derived, typename std::iterator_traits< Adapted >::value_type, typename std::iterator_traits< Adapted >::reference, typename std::iterator_traits< Adapted >::difference_type, typename std::iterator_traits< Adapted >::iterator_category >

Function Documentation

◆ operator!=()

template<typename Iterator >
bool fcppt::iterator::operator!= ( fcppt::iterator::range< Iterator > const &  _left,
fcppt::iterator::range< Iterator > const &  _right 
)
inline

◆ operator+()

template<typename Types >
fcppt::iterator::base< Types>::derived fcppt::iterator::operator+ ( typename fcppt::iterator::base< Types >::difference_type  ,
fcppt::iterator::base< Types > const &   
)

◆ operator<()

template<typename Types >
bool fcppt::iterator::operator< ( fcppt::iterator::base< Types > const &  ,
fcppt::iterator::base< Types > const &   
)

◆ operator<=()

template<typename Types >
bool fcppt::iterator::operator<= ( fcppt::iterator::base< Types > const &  ,
fcppt::iterator::base< Types > const &   
)

◆ operator==()

template<typename Iterator >
bool fcppt::iterator::operator== ( fcppt::iterator::range< Iterator > const &  _left,
fcppt::iterator::range< Iterator > const &  _right 
)
inline

◆ operator>()

template<typename Types >
bool fcppt::iterator::operator> ( fcppt::iterator::base< Types > const &  ,
fcppt::iterator::base< Types > const &   
)

◆ operator>=()

template<typename Types >
bool fcppt::iterator::operator>= ( fcppt::iterator::base< Types > const &  ,
fcppt::iterator::base< Types > const &   
)

◆ swap()

template<typename Types >
void fcppt::iterator::swap ( fcppt::iterator::base< Types > &  ,
fcppt::iterator::base< Types > &   
)