\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.14.3 - STL Extensions for CGAL
CGAL::Iterator_range< I > Class Template Reference

#include <CGAL/Iterator_range.h>

Inherits from

pair< I, I >.

Definition

CGAL::Iterator_range encapsulates two iterators so they fulfill the ForwardRange concept.

The class is essentially a clone of boost::iterator_range, and it additionally is derived from std::pair, so that one can apply boost::tie.

Public Types

typedef I iterator
 
typedef I const_iterator
 

Public Member Functions

 Iterator_range (I b, I e)
 
 Iterator_range (const std::pair< I, I > &ip)
 
begin () const
 
end () const
 
std::size_t size () const
 returns std::distance(begin(), end())