std::bind1st, std::bind2nd
Da cppreference.com.
< cpp | utility | functional
![]() | 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. |
template<class F, class T > std::binder1st<F> bind1st(const F& f, const T& x ); | (1) | (deprecato) |
template<class F, class T > std::binder2nd<F> bind2nd(const F& f, const T& x ); | (2) | (deprecato) |
Associa
1) 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.
You can help to correct and verify the translation. Click here for instructions.
Associa il primo argomento di
2) 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.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica]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. You can help to correct and verify the translation. Click here for instructions. |
x | - | argomento da associare f Original: argument to bind to f The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifica]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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]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.
You can help to correct and verify the translation. Click here for instructions.
[modifica]Vedi anche
(deprecato) (deprecato) | 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. You can help to correct and verify the translation. Click here for instructions. (classe template) |