Template Function thrust::not2¶
Defined in File functional.h
Function Documentation¶
-
template<typename BinaryPredicate>__host__ __device__ binary_negate<BinaryPredicate> thrust::not2(const BinaryPredicate & pred) not2is a helper function to simplify the creation of Adaptable Binary Predicates: it takes an Adaptable Binary Predicatepredas an argument and returns a new Adaptable Binary Predicate that represents the negation ofpred. That is: ifpredis an object of a type which models Adaptable Binary Predicate, then the the type of the resultnpredofnot2(pred)is also a model of Adaptable Binary Predicate andnpred(x,y)always returns the same value as!pred(x,y).- Return
A new object,
npredsuch thatnpred(x,y)always returns the same value as!pred(x,y).- See
- See
- Parameters
pred: The Adaptable Binary Predicate to negate.
- Template Parameters
Binary: Predicate is a model of Adaptable Binary Predicate.