---
name: "std::pointer_to_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::pointer_to_unary_function"
---

# std::pointer\_to\_unary\_function(3)

One of the adaptors for function pointers.

## NAME

std::pointer\_to\_unary\_function\< \_Arg, \_Result \> - One of the **adaptors for function pointers**.

## SYNOPSIS

\#include \<functional\>

Inherits **std::unary\_function\< \_Arg, \_Result \>**.

### Public Types

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

### Public Member Functions

**pointer\_to\_unary\_function** (\_Result(\*\_\_x)(\_Arg))\
 \_Result **operator()** (\_Arg \_\_x) const\

### Protected Attributes

\_Result(\* **\_M\_ptr** )(\_Arg)\

## Detailed Description

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

class std::pointer\_to\_unary\_function\< \_Arg, \_Result \>"One of the **adaptors for function pointers**.

## Member Typedef Documentation

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

argument\_type is the type of the argument

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

result\_type is the return type

## Author

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