Navigation: Up, Table of Contents, Bibliography, Index, Title Page

## CGAL::swap_1

### Definition

The function swap_1 is used to swap the arguments of a functor. The result is a functor f' that calls the original functor f with the first two arguments exchanged, that is f'(x,y,...)= f(y,x,...).

#include <CGAL/functional.h>

template < class F >
typename Swap<F,1>::Type
| swap_1 ( F f) | returns a functor equivalent to f, but where the first two arguments are exchanged. Requirement: F is a model for AdaptableFunctor with arity 2 ar 5.

### See Also

CGAL::Swap<F,i>
CGAL::swap_2
CGAL::swap_3
CGAL::swap_4
AdaptableFunctor

Next: swap_2

Navigation: Table of Contents, Bibliography, Index, Title Page

The CGAL Project . Tue, December 21, 2004 .