...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Applies function f to each segment.
Applies a function f (functor, having operator() defined) to each segment making up the geometry
template<typename Geometry, typename Functor> Functor for_each_segment(Geometry & geometry, Functor f)
Type |
Concept |
Name |
Description |
---|---|---|---|
Geometry & |
Any type fulfilling a Geometry Concept |
geometry |
A model of the specified concept |
Functor |
Function or class with operator() |
f |
Unary function, taking a segment as argument |
Either
#include <boost/geometry/geometry.hpp>
Or
#include <boost/geometry/algorithms/for_each.hpp>