Espaces de noms
Variantes

std::bind1st, std::bind2nd

De cppreference.com

<metanoindex/>

 
 
 
Objets Function
Emballages de fonction
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)
Lier
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)
Emballages de référence
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)
Emballages opérateur
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.
Négateurs
Original:
Negators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Obsolète liants et des adaptateurs
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 (obsolète)
binary_function (obsolète)
ptr_fun (obsolète)
pointer_to_unary_function (obsolète)
pointer_to_binary_function (obsolète)
mem_fun (obsolète)
mem_fun_t
mem_fun1_t
const_mem_fun_t
const_mem_fun1_t
(obsolète)
(obsolète)
(obsolète)
(obsolète)
mem_fun_ref (obsolète)
mem_fun_ref_t
mem_fun1_ref_t
const_mem_fun_ref_t
const_mem_fun1_ref_t
(obsolète)
(obsolète)
(obsolète)
(obsolète)
binder1st
binder2nd
(obsolète)
(obsolète)
bind1st
bind2nd
(obsolète)
(obsolète)
 
<tbody> </tbody>
template< class F, class T > std::binder1st<F> bind1st( const F& f, const T& x );
(1) (obsolète)
template< class F, class T > std::binder2nd<F> bind2nd( const F& f, const T& x );
(2) (obsolète)
Lié une x argument donné à un paramètre de premier ou deuxième de la f objet binaire fonction donnée. Qui est, dans les magasins x l'enveloppe qui en résulte, qui, si elle est appelée, passe x que le premier ou le deuxième paramètre de 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)

Lié au premier argument de f à x. Appelle effectivement 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)

Lié au deuxième argument de f à x. Appelle effectivement 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.

Paramètres

f -
pointeur vers une fonction de lier un argument
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 -
argument pour se lier à 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.

Retourne la valeur

Un emballage objet fonction f et 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.

Exceptions

(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

(obsolète)
(obsolète)
foncteur contenant une fonction binaire et un des deux paramètres
(classe générique) [edit]