---
name: "std::binary_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::binary_negate"
---

# std::binary\_negate(3)

One of the negation functors.

## NAME

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

## SYNOPSIS

\#include \<functional\>

Inherits **std::binary\_function\< \_Predicate::first\_argument\_type, \_Predicate::second\_argument\_type, bool \>**.

### Public Types

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

### Public Member Functions

constexpr **binary\_negate** (const \_Predicate &\_\_x)\
 constexpr bool **operator()** (const typename \_Predicate::first\_argument\_type &\_\_x, const typename \_Predicate::second\_argument\_type &\_\_y) const\

### Protected Attributes

\_Predicate **\_M\_pred**\

## Detailed Description

### template\<typename \_Predicate\>

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

## Member Typedef Documentation

### typedef \_Predicate::first\_argument\_type std::binary\_function\< \_Predicate::first\_argument\_type, \_Predicate::second\_argument\_type, bool \>::first\_argument\_type \[inherited\]

first\_argument\_type is the type of the first argument

### typedef bool std::binary\_function\< \_Predicate::first\_argument\_type, \_Predicate::second\_argument\_type, bool \>::result\_type \[inherited\]

result\_type is the return type

### typedef \_Predicate::second\_argument\_type std::binary\_function\< \_Predicate::first\_argument\_type, \_Predicate::second\_argument\_type, bool \>::second\_argument\_type \[inherited\]

second\_argument\_type is the type of the second argument

## Author

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