---
name: "std::negate"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::negate"
---

# std::negate(3)

One of the math functors.

## NAME

std::negate\< \_Tp \> - One of the **math functors**.

## SYNOPSIS

\#include \<functional\>

Inherits **std::unary\_function\< \_Tp, \_Tp \>**.

### Public Types

typedef \_Tp **argument\_type**\
 argument\_type is the type of the argument  typedef \_Tp **result\_type**\
 result\_type is the return 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**.

## Member Typedef Documentation

### typedef \_Tp std::unary\_function\< \_Tp, \_Tp \>::argument\_type \[inherited\]

argument\_type is the type of the argument

### typedef \_Tp std::unary\_function\< \_Tp, \_Tp \>::result\_type \[inherited\]

result\_type is the return type

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
