std::negate

Header: <functional>

Function object for performing negation. Effectively calls operator- on an instance of type T.

# Declarations

template< class T >
struct negate;

(until C++14)

template< class T = void >
struct negate;

(since C++14)

# Parameters

# Return value

The result of -arg.