Skip to main content

Module for_each

Module for_each 

Source
Expand description

Geometry visitors — for_each_point and for_each_segment.

Mirror boost::geometry::for_each_point and boost::geometry::for_each_segment from boost/geometry/algorithms/for_each.hpp. Both pass each visited element to a user closure by & (read-only). Boost also exposes mutating variants; we ship the read-only forms — mutation is the KC1 PointMut concern, not the visitor’s job.

Functions§

for_each_point
Apply f to every stored point of g, recursively.
for_each_segment
Apply f to every segment of g as a (&start, &end) pair, recursively.