boost::compute::unary_negate
// In header: <boost/compute/functional/logical.hpp> template<typename Predicate> class unary_negate : public boost::compute::unary_function< void, int > { public: // construct/copy/destruct explicit unary_negate(Predicate); };