Share via


negate

negate

template<class T>
    struct negate : public unary_function<T, T> {
    T operator()(const T& x) const;
    };

The template class defines its member function as returning -x.