Navigation:
Up
,
Table of Contents
,
Package Overview
,
Bibliography
,
Index
,
Title Page
,
Acknowledging CGAL
CGAL::negate
Definition
The function
negate
is a functor adaptor. For a given functor
f
, it creates a new functor
f'
which is the negation of
f
. That is,
f' = !f
.
#include <CGAL/functional.h>
template < typename F >
typename
Compose
< std::logical_not<typename F::result_type>, F >::Type
negate ( F f)
returns the functor
!f
with the same arity as
f
.
Requirement:
f
is a model for
AdaptableFunctor
. Unary negation is defined for
F::result_type
.
See Also
CGAL::Compose<F0,F1,F2,F3>
CGAL::compose
AdaptableFunctor
Next:
Swap<F,i>
Navigation:
Up
,
Table of Contents
,
Package Overview
,
Bibliography
,
Index
,
Title Page
,
Acknowledging CGAL
CGAL Open Source Project
. Release 3.3.1. 25 August 2007.