---
name: "__gnu_cxx::equal_to"
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/__gnu_cxx::equal_to"
---

# \_\_gnu\_cxx::equal\_to(3)

One of the comparison functors.

## NAME

\_\_gnu\_cxx::equal\_to\< \_Tp \> - One of the **comparison functors**.

## SYNOPSIS

\#include \<stl\_function.h\>

Inherits **std::binary\_function\< \_Tp, \_Tp, bool \>**.

### Public Types

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

### Public Member Functions

constexpr bool **operator()** (const \_Tp &\_\_x, const \_Tp &\_\_y) const\

## Detailed Description

### template\<typename \_Tp\>

struct \_\_gnu\_cxx::equal\_to\< \_Tp \>"One of the **comparison functors**.

## Member Typedef Documentation

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

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

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

result\_type is the return type

### typedef \_Tp std::binary\_function\< \_Tp, \_Tp, 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.
