| Home | Libraries | People | FAQ | More

#### closing_iterator

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

###### Synopsis

    template<typename Range>
    struct closing_iterator
    {
      // ...
    };

###### 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.

###### Member Function(s)

Function | Description | Parameters | Returns
--- | --- | --- | ---

    closing_iterator< Range > & operator=(closing_iterator< Range > const & source)

closing_iterator< Range > const &: source:

###### Header

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