Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::closeable_view< Range, Close > Struct Template Reference

View on a range, either closing it or leaving it as it is. More...

#include <closeable_view.hpp>

Detailed Description

template<typename Range, closure_selector Close>
struct boost::geometry::closeable_view< Range, Close >

View on a range, either closing it or leaving it as it is.

The closeable_view is used internally by the library to handle all rings, either closed or open, the same way. The default method is closed, all algorithms process rings as if they are closed. Therefore, if they are opened, a view is created which closes them. The closeable_view might be used by library users, but its main purpose is internally.

Template Parameters
RangeOriginal range
CloseSpecifies if it the range is closed, if so, nothing will happen. If it is open, it will iterate the first point after the last point.

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