---
name: "std::unary_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::unary_function"
---

# std::unary\_function(3)

## NAME

std::unary\_function\< \_Arg, \_Result \>

## SYNOPSIS

\#include \<functional\>

Inherited by , **std::logical\_not\< void \>**, and **std::negate\< void \>**.

### Public Types

typedef \_Arg **argument\_type**\
 argument\_type is the type of the argument  typedef \_Result **result\_type**\
 result\_type is the return type

## Detailed Description

### template\<typename \_Arg, typename \_Result\>

struct std::unary\_function\< \_Arg, \_Result \>"Helper for defining adaptable unary function objects.

**Deprecated**

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

## Member Typedef Documentation

### template\<typename \_Arg, typename \_Result\> typedef \_Arg std::unary\_function\< \_Arg, \_Result \>::argument\_type

argument\_type is the type of the argument

### template\<typename \_Arg, typename \_Result\> typedef \_Result std::unary\_function\< \_Arg, \_Result \>::result\_type

result\_type is the return type

## Author

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