---
name: "std::binary_function"
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_function"
---

# std::binary\_function(3)

## NAME

std::binary\_function\< \_Arg1, \_Arg2, \_Result \>

## SYNOPSIS

\#include \<functional\>

Inherited by , , , , **std::divides\< void \>**, **std::equal\_to\< Key \>**, **std::equal\_to\< void \>**, **std::greater\< void \>**, **std::greater\_equal\< void \>**, **std::less\< void \>**, **std::less\_equal\< void \>**, **std::logical\_and\< void \>**, **std::logical\_or\< void \>**, **std::minus\< void \>**, **std::modulus\< void \>**, **std::multiplies\< void \>**, and **std::not\_equal\_to\< void \>**.

### Public Types

typedef \_Arg1 **first\_argument\_type**\
 first\_argument\_type is the type of the first argument  typedef \_Result **result\_type**\
 result\_type is the return type  typedef \_Arg2 **second\_argument\_type**\
 second\_argument\_type is the type of the second argument

## Detailed Description

### template\<typename \_Arg1, typename \_Arg2, typename \_Result\>

struct std::binary\_function\< \_Arg1, \_Arg2, \_Result \>"Helper for defining adaptable binary function objects.

**Deprecated**

Deprecated in C++11, no longer in the standard since C++17.

## Member Typedef Documentation

### template\<typename \_Arg1, typename \_Arg2, typename \_Result\> typedef \_Arg1 std::binary\_function\< \_Arg1, \_Arg2, \_Result \>::first\_argument\_type

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

### template\<typename \_Arg1, typename \_Arg2, typename \_Result\> typedef \_Result std::binary\_function\< \_Arg1, \_Arg2, \_Result \>::result\_type

result\_type is the return type

### template\<typename \_Arg1, typename \_Arg2, typename \_Result\> typedef \_Arg2 std::binary\_function\< \_Arg1, \_Arg2, \_Result \>::second\_argument\_type

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

## Author

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