for_each

# for_each: apply a functor to each point or segment of a geometry

typename Geometry
typename Functor
Functor Functor boost::geometry::for_each_point (Geometry &geometry, Functor f) for_each_point Geometry & geometry Functor f

Applies function [*f] to each \1.

Applies a function [*f] (functor, having operator() defined) to each point making up the geometry

geometry

A model of the specified concept

f

Unary function, taking a point as argument

Geometry

Any type fulfilling a Geometry Concept

Functor

Function or class with operator()

[include reference/algorithms/for_each_point.qbk] [heading Example] [for_each_point] [for_each_point_output] [for_each_point_const] [for_each_point_const_output]
typename Geometry
typename Functor
Functor Functor boost::geometry::for_each_segment (Geometry &geometry, Functor f) for_each_segment Geometry & geometry Functor f

Applies function [*f] to each \1.

Applies a function [*f] (functor, having operator() defined) to each segment making up the geometry

geometry

A model of the specified concept

f

Unary function, taking a segment as argument

Geometry

Any type fulfilling a Geometry Concept

Functor

Function or class with operator()

[include reference/algorithms/for_each_segment.qbk] [heading Example] [for_each_segment_const] [for_each_segment_const_output]