---
name: "std::pointer_to_unary_function"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::pointer_to_unary_function/3cxx"
---

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

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.
