...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Iterator which iterates through a range, but adds first element at end of the range.
template<typename Range> struct closing_iterator { // ... };
Parameter |
Description |
---|---|
typename Range |
range on which this class is based on |
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. |
Function |
Description |
Parameters |
Returns |
---|---|---|---|
closing_iterator< Range > & operator=(closing_iterator< Range > const & source)
|
closing_iterator< Range > const &: source: |
#include <boost/geometry/iterators/closing_iterator.hpp>