thrust::not2
Defined in thrust/functional.h
-
template<typename BinaryPredicate>
binary_negate<BinaryPredicate> thrust::not2(const BinaryPredicate &pred) not2
is a helper function to simplify the creation of Adaptable Binary Predicates: it takes an Adaptable Binary Predicatepred
as an argument and returns a new Adaptable Binary Predicate that represents the negation ofpred
. That is: ifpred
is an object of a type which models Adaptable Binary Predicate, then the the type of the resultnpred
ofnot2(pred)
is also a model of Adaptable Binary Predicate andnpred(x,y)
always returns the same value as!pred(x,y)
.deprecated [Since 2.6]
See also
See also
not1
- Parameters
pred – The Adaptable Binary Predicate to negate.
- Template Parameters
Binary – Predicate is a model of an Adaptable Binary Predicate.
- Returns
A new object,
npred
such thatnpred(x,y)
always returns the same value as!pred(x,y)
.