Navigation: Up, Table of Contents, 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: Table of Contents, Bibliography, Index, Title Page

The CGAL Project . Tue, December 21, 2004 .