Navigation:
Up
,
Table of Contents
,
Short Table of Contents
,
Package Overview
,
Bibliography
,
Index
,
Title Page
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
Next:
swap_3
Navigation:
Up
,
Table of Contents
,
Short Table of Contents
,
Package Overview
,
Bibliography
,
Index
,
Title Page
CGAL Open Source Project
. Release 3.2.1. 13 July 2006.