ChessPlusPlus  WIP
cplusplus.com Community Project
chesspp::util::Range< ItT > Class Template Reference

#include <Utilities.hpp>

Public Member Functions

 Range (std::pair< ItT, ItT > const &range) noexcept
 
ItT begin () const noexcept
 
ItT end () const noexcept
 

Detailed Description

template<typename ItT>
class chesspp::util::Range< ItT >

Takes a std::pair of iterators (e.g. the return value of some standard algorithms) and uses it for begin and end member functions to be compatible with std::begin, std::end, and range-based for loops.

Template Parameters
ItTThe iterator type, e.g. container::const_iterator

Constructor & Destructor Documentation

template<typename ItT >
chesspp::util::Range< ItT >::Range ( std::pair< ItT, ItT > const &  range)
inlinenoexcept

Member Function Documentation

template<typename ItT >
ItT chesspp::util::Range< ItT >::begin ( ) const
inlinenoexcept
template<typename ItT >
ItT chesspp::util::Range< ItT >::end ( ) const
inlinenoexcept

The documentation for this class was generated from the following file: