std::bind1st, std::bind2nd - cppreference.com
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>
|
|
(1) | (deprecato) |
|
|
(2) | (deprecato) |
Associa x argomento fornito ad un parametro prima o seconda del dato f oggetto funzione binaria. Cioè, negozi x all'interno dell'involucro risultante, che, se chiamato, passa x come primo o il secondo parametro di f.
Original:
Binds a given argument x to a first or second parameter of the given binary function object f. That is, stores x within the resulting wrapper, which, if called, passes x as the first or the second parameter of f.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Associa il primo argomento di f a x. Chiama efficacemente std::binder1st<F>(f, typename F::first_argument_type(x)).
Original:
Binds the first argument of f to x. Effectively calls std::binder1st<F>(f, typename F::first_argument_type(x)).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Associa il secondo argomento di f a x. Chiama efficacemente std::binder2nd<F>(f, typename F::second_argument_type(x)).
Original:
Binds the second argument of f to x. Effectively calls std::binder2nd<F>(f, typename F::second_argument_type(x)).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| f | - | puntatore ad una funzione per associare un argomento Original: pointer to a function to bind an argument to The text has been machine-translated via Google Translate. |
| x | - | argomento da associare Original: argument to bind to The text has been machine-translated via Google Translate. |
Valore di ritorno
Un involucro oggetto funzione f e x.
Original:
A function object wrapping f and x.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Eccezioni
(Nessuno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Vedi anche
oggetto funzione che tiene una funzione binaria e uno dei suoi argomenti Original: function object holding a binary function and one of its arguments The text has been machine-translated via Google Translate. (classe template) [modifica] | |