---
name: "std::unary_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::unary_negate"
---

# std::unary\_negate(3)

One of the negation functors.

## NAME

std::unary\_negate\< \_Predicate \> - One of the **negation functors**.

## SYNOPSIS

\#include \<functional\>

Inherits **std::unary\_function\< \_Predicate::argument\_type, bool \>**.

### Public Types

typedef \_Predicate::argument\_type **argument\_type**\
 argument\_type is the type of the argument  typedef bool **result\_type**\
 result\_type is the return type

### Public Member Functions

constexpr **unary\_negate** (const \_Predicate &\_\_x)\
 constexpr bool **operator()** (const typename \_Predicate::argument\_type &\_\_x) const\

### Protected Attributes

\_Predicate **\_M\_pred**\

## Detailed Description

### template\<typename \_Predicate\>

class std::unary\_negate\< \_Predicate \>"One of the **negation functors**.

## Member Typedef Documentation

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

argument\_type is the type of the argument

### typedef bool std::unary\_function\< \_Predicate::argument\_type, bool \>::result\_type \[inherited\]

result\_type is the return type

## Author

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