Namespaces
Variants

std:: pointer_to_unary_function

From cppreference.net
Utilities library
Function objects
Function invocation
(C++17) (C++23)
Identity function object
(C++20)
Old binders and adaptors
( until C++17* )
( until C++17* )
( until C++17* )
pointer_to_unary_function
( until C++17* )
( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
( until C++17* ) ( until C++17* )
( until C++17* ) ( until C++17* )

( until C++17* )
( until C++17* ) ( until C++17* ) ( until C++17* ) ( until C++17* )
( until C++20* )
( until C++20* )
template <

class Arg,
class Result

> class pointer_to_unary_function : public std:: unary_function < Arg, Result > ;
(C++11で非推奨)
(C++17で削除)

std::pointer_to_unary_function は単項関数をラップする関数オブジェクトです。

目次

メンバー関数

(constructor)
指定された関数で新しい pointer_to_unary_function オブジェクトを構築する
(public member function)
operator()
格納された関数を呼び出す
(public member function)

std::pointer_to_unary_function:: pointer_to_unary_function

explicit pointer_to_unary_function ( Result ( * f ) ( Arg ) ) ;

pointer_to_unary_function 関数オブジェクトを構築し、格納する関数を f に設定します。

パラメータ

f - 格納する関数へのポインタ

std::pointer_to_unary_function:: operator()

Result operator ( ) ( Arg x ) const ;

格納された関数を呼び出します。

パラメータ

x - 関数に渡す引数

戻り値

呼び出された関数から返される値。

関連項目

(C++11で非推奨) (C++17で削除)
二項関数ポインタのアダプタ互換ラッパー
(クラステンプレート)
(C++11で非推奨) (C++17で削除)
関数ポインタからアダプタ互換な関数オブジェクトラッパーを作成する
(関数テンプレート)