libstdc++: std::negate< _Tp > Struct Template Reference

libstdc++

std::negate< _Tp > Struct Template Reference
Utilities » Function Objects » Arithmetic Function Object Classes

`#include <stl_function.h>`

Inheritance diagram for std::negate< _Tp >:
[legend]

## Public Types
typedef _Tp | argument_type
typedef _Tp | result_type

## Public Member Functions
constexpr _Tp | operator() (const _Tp &__x) const

## Detailed Description

template<typename _Tp>
struct std::negate< _Tp >

One of the math functors.

Definition at line 238 of file stl_function.h.

## Member Typedef Documentation

## ◆ argument_type

typedef _Tp std::unary_function< _Tp, _Tp >::argument_type
| inherited

`argument_type` is the type of the argument

Definition at line 123 of file stl_function.h.

## ◆ result_type

typedef _Tp std::unary_function< _Tp, _Tp >::result_type
| inherited

`result_type` is the return type

Definition at line 126 of file stl_function.h.

## Member Function Documentation

## ◆ operator()()

template<typename _Tp>

_Tp std::negate< _Tp >::operator() | ( | const _Tp & | __x | ) | const
| inlineconstexpr

Definition at line 242 of file stl_function.h.

The documentation for this struct was generated from the following file:

- stl_function.h