As an example, consider a binary functor and two functors and , with arity three and two, respectively. Composing and into yields a new functor
with arity five.
#include <CGAL/functional.h>
| ||
| ||
| ||
returns the functor
f0(f1()) with the same arity as f1. Requirement: f0 is unary function (arity 1). f0 and f1 are models for AdaptableFunctor. | ||
| ||
| ||
| ||
returns the functor
f0(f1(),f2()) with arity equal
to . Requirement: f0 is binary function (arity 2). f0, f1, and f2 are models for AdaptableFunctor. | ||
| ||
| ||
| ||
returns the functor
f0(f1(),f2(),f3())
with arity equal to . Requirement: f0 is ternary function (arity 3). f0, f1, f2, and f3 are models for AdaptableFunctor. |