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