Defined in thrust/functional.h
Takes a predicate (a callable returning bool) and returns a new predicate that returns the negated result.
See also
https://en.cppreference.com/w/cpp/utility/functional/not_fn