| Home | Libraries | People | FAQ | More

## Class template unary_negate

boost::compute::unary_negate

## Synopsis

    // In header: <boost/compute/functional/logical.hpp>

    template<typename Predicate>
    class unary_negate : public boost::compute::unary_function< void, int > {
    public:

      // public member functions
      explicit unary_negate(Predicate);
    };

## Description

The unary_negate function adaptor negates a unary function.

See Also: not1()

### `unary_negate` public member functions

1.     explicit unary_negate(Predicate pred);