---
name: "std::binary_negate"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::binary_negate/3cxx"
---

# std::binary\_negate(3cxx)

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.
