thrust::not_fn

Defined in thrust/functional.h

template<class F>
auto thrust::not_fn(F &&f) -> detail::not_fun_t<::cuda::std::decay_t<F>>

Takes a predicate (a callable returning bool) and returns a new predicate that returns the negated result.