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