View on a range, either closing it or leaving it as it is. More...
#include <closeable_view.hpp>
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.
Range | Original range |
Close | Specifies 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. |