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
initializer_list(C++11)
bitset
hash(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.
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
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.
pair
tuple(C++11)
piecewise_construct_t(C++11)
piecewise_construct(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.
swap
forward(C++11)
move(C++11)
move_if_noexcept(C++11)
declval(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.
function(C++11)
mem_fn(C++11)
bad_function_call(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.
bind(C++11)
is_bind_expression(C++11)
is_placeholder(C++11)
_1, _2, _3, ...(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.
reference_wrapper(C++11)
ref
cref
(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.
unary_function(obsoleto)
binary_function(obsoleto)
ptr_fun(obsoleto)
pointer_to_unary_function(obsoleto)
pointer_to_binary_function(obsoleto)
mem_fun(obsoleto)
mem_fun_t
mem_fun1_t
const_mem_fun_t
const_mem_fun1_t
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)
mem_fun_ref(obsoleto)
mem_fun_ref_t
mem_fun1_ref_t
const_mem_fun_ref_t
const_mem_fun1_ref_t
(obsoleto)
(obsoleto)
(obsoleto)
(obsoleto)
binder1st
binder2nd
(obsoleto)
(obsoleto)
bind1st
bind2nd
(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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]
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) [edit]

[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.

(función de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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) [edit]

[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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]

[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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(función de plantilla) [edit]
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.

(función de plantilla) [edit]

[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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]
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.

(clase de plantilla) [edit]
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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]
(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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]
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.

(clase de plantilla) [edit]
(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.

(función de plantilla) [edit]