std::pointer_to_unary_function
De cppreference.com
< cpp | utility | functional
![]() |
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
template< class Arg, |
(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.
You can help to correct and verify the translation. Click here for instructions.
[editar] 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
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.
You can help to correct and verify the translation. Click here for instructions.
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()
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.
You can help to correct and verify the translation. Click here for instructions.
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.
[editar] 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) |
(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) |