Espacios de nombres
Variantes
Acciones

Function objects

De cppreference.com
< cpp‎ | utility


 
 
Utilidades de la biblioteca
Escriba apoyo (basic types, RTTI, type traits)
Gestión de memoria dinámica
Gestión de errores
Programa de servicios públicos
Funciones variadic
Fecha y hora
Objetos Function
(C++11)
Operadores relacionales
Original:
Relational operators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Pares y tuplas
Original:
Pairs and tuples
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Cambiar, hacia adelante y mover
Original:
Swap, forward and move
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
(C++11)
 
Objetos Function


Envoltorios de función
Original:
Function wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
(C++11)
Enlazar
Original:
Bind
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
Envolturas de referencia
Original:
Reference wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)(C++11)
Envoltorios Operador
Original:
Operator wrappers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Negadores
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Desaprobado aglutinantes y adaptadores
Original:
Deprecated binders and adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)(obsoleto)(obsoleto)(obsoleto)
(obsoleto)
(obsoleto)(obsoleto)
(obsoleto)(obsoleto)
 
Una función' objeto es cualquier objeto para el que se define el operador de llamada de función. C + + proporciona muchos objetos integrados de función, así como apoyo para la creación y manipulación de objetos funcionales nuevas .
Original:
A function object is any object for which the function call operator is defined. C++ provides many built-in function objects as well as support for creation and manipulation of new function objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Envoltorios polimórficos función

std::function proporciona soporte para almacenar objetos arbitrarios de función .
Original:
std::function provides support for storing arbitrary function objects.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
envuelve objeto que se puede llamar de cualquier tipo con la firma especificada llamada de función
Original:
wraps callable object of any type with specified function call signature
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(C++11)
crea un objeto de función de un puntero a un miembro
Original:
creates a function object out of a pointer to a member
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
la excepción que se produce cuando se invoca una std::function vacía
Original:
the exception thrown when invoking an empty std::function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(clase) [editar]

[editar] Enlazar

std::bind proporciona soporte para aplicación parcial de la función, es decir, argumentos obligatorios para las funciones para producir nuevas funciones .
Original:
std::bind provides support for aplicación parcial de la función, i.e. binding arguments to functions to produce new functions.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(C++11)
se une uno o más argumentos a un objeto de función
Original:
binds one or more arguments to a function object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
indica que un objeto es std::bind expresión o puede ser utilizado como uno
Original:
indicates that an object is std::bind expression or can be used as one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
indica que un objeto es un marcador de posición estándar o se puede usar como una
Original:
indicates that an object is a standard placeholder or can be used as one
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Defined in namespace std::placeholders
marcadores de posición para los argumentos no unidos en una expresión std::bind
Original:
placeholders for the unbound arguments in a std::bind expression
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(constante) [editar]

[editar] Envolturas de referencia

Envoltorios de referencia permiten argumentos de referencia que se almacena en objetos de función copiables:
Original:
Reference wrappers allow reference arguments to be stored in copyable function objects:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CopyConstructible y CopyAssignable envoltura de referencia
Original:
CopyConstructible and CopyAssignable reference wrapper
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(C++11)(C++11)
crea una std::reference_wrapper con un tipo de deducir de su argumento
Original:
creates a std::reference_wrapper with a type deduced from its argument
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]

[editar] Objetos Function

C + + define varios objetos de función que representan aritmética común y las operaciones lógicas:
Original:
C++ defines several function objects that represent common arithmetic and logical operations:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Las operaciones aritméticas
Original:
Arithmetic operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
objeto función que implementa x + y
Original:
function object implementing x + y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x - y
Original:
function object implementing x - y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x * y
Original:
function object implementing x * y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x / y
Original:
function object implementing x / y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x % y
Original:
function object implementing x % y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa -x
Original:
function object implementing -x
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Las comparaciones
Original:
Comparisons
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
objeto función que implementa x == y
Original:
function object implementing x == y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x != y
Original:
function object implementing x != y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x > y
Original:
function object implementing x > y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x < y
Original:
function object implementing x < y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x >= y
Original:
function object implementing x >= y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x <= y
Original:
function object implementing x <= y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Las operaciones lógicas
Original:
Logical operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
objeto función que implementa x && y
Original:
function object implementing x && y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x || y
Original:
function object implementing x || y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa !x
Original:
function object implementing !x
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Bitwise operaciones
Original:
Bitwise operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
objeto función que implementa x & y
Original:
function object implementing x & y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x | y
Original:
function object implementing x | y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto función que implementa x ^ y
Original:
function object implementing x ^ y
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Negadores
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
objeto contenedor función que devuelve el complemento del predicado unario que contiene
Original:
wrapper function object returning the complement of the unary predicate it holds
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
objeto contenedor función que devuelve el complemento del predicado binario que contiene
Original:
wrapper function object returning the complement of the binary predicate it holds
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
construye std::unary_negate objeto personalizado
Original:
constructs custom std::unary_negate object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
construye std::binary_negate objeto personalizado
Original:
constructs custom std::binary_negate object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]

[editar] Obsoletos en C + +11

Varias utilidades que proporcionan apoyo funcional temprana están en desuso en C + 11:
Original:
Several utilities that provided early functional support are deprecated in C++11:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Base
Original:
Base
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(obsoleto)
adaptador compatible con la clase base de la función unaria
Original:
adaptor-compatible unary function base class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
adaptador compatible con la función binaria clase base
Original:
adaptor-compatible binary function base class
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
Los aglutinantes
Original:
Binders
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
(obsoleto)(obsoleto)
objeto de la función que ocupen una función binaria y uno de sus argumentos
Original:
function object holding a binary function and one of its arguments
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(obsoleto)(obsoleto)
se une un argumento de una función binaria
Original:
binds one argument to a binary function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
Adaptadores de función
Original:
Function adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
adaptador compatible con contenedor de un puntero a función unaria
Original:
adaptor-compatible wrapper for a 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.

(plantilla de clase) [editar]
adaptador compatible con contenedor de un puntero a función binaria
Original:
adaptor-compatible wrapper for a pointer to binary function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(obsoleto)
crea un adaptador compatible con envoltura objeto de la función de puntero a función
Original:
creates an adaptor-compatible function object wrapper from a pointer to function
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
(obsoleto)(obsoleto)(obsoleto)(obsoleto)
contenedor de un puntero a función miembro nularia, que se puede llamar con un puntero al objeto
Original:
wrapper for a pointer to nullary member function, callable with a pointer to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(obsoleto)
crea una envoltura de un puntero a función miembro, se puede llamar con un puntero al objeto
Original:
creates a wrapper from a pointer to member function, callable with a pointer to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]
Wapper de un puntero a función miembro nularia o unario, que se puede llamar con una referencia al objeto
Original:
wapper for a pointer to nullary or unary member function, callable with a reference to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de clase) [editar]
(obsoleto)
crea una envoltura de un puntero a función miembro, se puede llamar con una referencia al objeto
Original:
creates a wrapper from a pointer to member function, callable with a reference to object
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(plantilla de función) [editar]