Function objects
Da cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
A' objeto de função é qualquer objeto para o qual o operador de chamada de função é definida. C + + fornece muitos objetos internos de função, bem como suporte para a criação e manipulação de objetos nova função.
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.
You can help to correct and verify the translation. Click here for instructions.
[editar] Polimórficos invólucros de função
std::function fornece suporte para armazenar objetos de função arbitrárias.
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.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
envolve objeto que pode ser chamado de qualquer tipo com a assinatura especificada função chamada 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. (modelo de classe) |
(C++11) |
cria um objecto de função de um apontador para um membro 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. (modelo de função) |
(C++11) |
a exceção lançada quando invocar um std::function vazio 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. (classe) |
[editar] Ligar
std::bind fornece suporte para aplicação de função parcial, ou seja, os argumentos de ligação para as funções de produzir novas funções.
Original:
std::bind provides support for aplicação de função parcial, 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.
You can help to correct and verify the translation. Click here for instructions.
(C++11) |
se liga um ou mais argumentos para um objeto de função 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. (modelo de função) |
(C++11) |
indica que um objecto é expressão std::bind ou podem ser utilizados como um 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. (modelo de classe) |
(C++11) |
indica que um objecto é um marcador padrão ou podem ser utilizados como um 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. (modelo de classe) |
Defined in namespace
std::placeholders | |
(C++11) |
espaços reservados para os argumentos não ligados em uma expressão de std::bind Original: placeholders for the unbound arguments in a std::bind expression The text has been machine-translated via |