---
name: "__gnu_parallel::_EqualTo"
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_parallel::_EqualTo"
---

# \_\_gnu\_parallel::\_EqualTo(3)

Similar to std::equal\_to, but allows two different types.

## NAME

\_\_gnu\_parallel::\_EqualTo\< \_T1, \_T2 \> - Similar to std::equal\_to, but allows two different types.

## SYNOPSIS

\#include \<base.h\>

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

### Public Types

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

### Public Member Functions

bool **operator()** (const \_T1 &\_\_t1, const \_T2 &\_\_t2) const\

## Detailed Description

### template\<typename \_T1, typename \_T2\>

struct \_\_gnu\_parallel::\_EqualTo\< \_T1, \_T2 \>"Similar to std::equal\_to, but allows two different types.

## Member Typedef Documentation

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

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

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

result\_type is the return type

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