As an example, consider a binary functor and two binary functors and . Composing and into yields a new binary functor
#include <CGAL/functional.h>
| ||
| ||
| ||
returns the functor
f0(f1(),f2()) with the same
arity as (and ). Requirement: f0 is AdaptableFunctor of arity 2. f1 and f2 are AdaptableFunctors having the same arity. | ||
| ||
| ||
| ||
returns the functor
f0(f1(),f2(),f3())
with the same arity as (and , ). Requirement: f0 is AdaptableFunctor of arity 3. f1, f2, and f3 are AdaptableFunctors having the same arity. |