Espacios de nombres
Variantes

std::pointer_to_unary_function

De cppreference.com
 
 
Biblioteca de servicios
 
Objetos función
Envoltorios de funciones
(C++11)
(C++11)
Aplicación parcial de funciones
(C++20)
(C++11)
Invocación de funciones
(C++17)(C++23)
Objeto función identidad
(C++20)
Envoltorios de referencias
(C++11)(C++11)
Envoltorios de operador transparentes
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
(C++14)
Negadores
(C++17)
Buscadores
Comparadores restringidos
Vinculadores y adaptadores antiguos
(hasta C++17)
(hasta C++17)
(hasta C++17)
(hasta C++17)
(hasta C++17)(hasta C++17)(hasta C++17)(hasta C++17)
(hasta C++20)
(hasta C++20)
(hasta C++17)(hasta C++17)
(hasta C++17)(hasta C++17)

(hasta C++17)
(hasta C++17)(hasta C++17)(hasta C++17)(hasta C++17)
(hasta C++20)
(hasta C++20)
 
<tbody> </tbody>
template< class Arg, class Result > class pointer_to_unary_function : public std::unary_function<Arg, Result>;
(en desuso)
std::pointer_to_unary_function es un objeto función que actúa como contenedor de una función unaria .
Original:
std::pointer_to_unary_function is a function object that acts as a wrapper around a unary function.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Las funciones miembro

(constructor)
constructs a new pointer_to_unary_function object with the supplied function
(función miembro pública)
operator()
llama a la función almacenada
Original:
calls the stored function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(función miembro pública)

std :: pointer_to_unary_function ::
Original:
std::pointer_to_unary_function::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
pointer_to_unary_function

<tbody> </tbody>
explicit pointer_to_unary_function( Result (*f)(Arg) );

Constructs a pointer_to_unary_function function object with the stored function f.

Parameters

f -
puntero a una función para almacenar
Original:
pointer to a function to store
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

std :: pointer_to_unary_function ::
Original:
std::pointer_to_unary_function::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator()

<tbody> </tbody>
Result operator()( Arg x ) const;

Calls the stored function.

Parameters

x -
argumento para pasar a la función
Original:
argument to pass to the function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Return value

The value returned by the called function.

Ver también

(en desuso en C++11)(eliminado en C++17)
Envoltorio compatible con un adaptador para un puntero a función binaria.
(plantilla de clase) [editar]
(en desuso en C++11)(eliminado en C++17)
Crea un envoltorio de objeto función compatible con un adaptador de un puntero a función
(plantilla de función) [editar]