std::for_each
De 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. |
Déclaré dans l'en-tête <algorithm>
|
||
template< class InputIt, class UnaryFunction > UnaryFunction for_each( InputIt first, InputIt last, UnaryFunction f ); |
||
Applique la fonction donnée
f
objet à la suite de déréférencement chaque itération dans le [first, last)
plage, dans l'ordre. Si InputIt
est un itérateur modifiable, f
peut modifier les éléments de la gamme par l'itérateur déréférencé. Si f
renvoie un résultat, le résultat est ignoré .Original:
Applies the given function object
f
to the result of dereferencing every iterator in the range [first, last)
, in order. If InputIt
is a mutable iterator, f
may modify the elements of the range through the dereferenced iterator. If f
returns a result, the result is ignored.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.
Sommaire |
[modifier] Paramètres
first, last | - | la gamme d'appliquer la fonction d'
Original: the range to apply the function to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
f | - | l'objet de fonction unaire appliqué Original: the unary function object to be applied The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click |