Name
negate class template — Unary functional for arithmetic negation
Synopsis
template <typename T>
struct negate : unary_function<T,T> {
T operator( )(const T& x) const;
};
The negate
class template
is a unary functional that performs arithmetic negation, that is,
operator( )
returns -x
.