Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

closing_iterator

Iterator which iterates through a range, but adds first element at end of the range.

Synopsis

template<typename Range>
struct closing_iterator
      : public boost::iterator_facade< closing_iterator< Range >, boost::range_value< Range >::type const, boost::random_access_traversal_tag, boost::range_reference< Range const  >::type, boost::range_difference< Range >::type >
{
  // ...
};

Template parameter(s)

Parameter

Description

typename Range

range on which this class is based on

Constructor(s)

Function

Description

Parameters

closing_iterator(Range & range)

Constructor including the range it is based on.

Range &: range:

closing_iterator(Range & range, bool )

Constructor to indicate the end of a range.

Range &: range:

bool: :

closing_iterator()

Default constructor.

Header

#include <boost/geometry/iterators/closing_iterator.hpp>


PrevUpHomeNext