## CGAL::swap_2

### Definition

The function swap_2 is used to swap the arguments of a functor. The result is a functor f' that calls the original functor f with the second and third argument exchanged, that is f'(x,y,z,...)= f(x,z,y,...).

#include <CGAL/functional.h>

template < class F >
typename Swap<F,2>::Type
| swap_2 ( F f) | returns a functor equivalent to f, but where the second and third argument are exchanged. Requirement: F is a model for AdaptableFunctor with arity 3 ar 5.

### See Also

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