std::plus — cppreference.com
De cppreference.com
<tbody> </tbody>
| Déclaré dans l'en-tête <functional> |
||
|
|
||
Objet-fonction pour effectuer une addition. Appelle operator+ sur deux instances de type T.
Types membres
| Type | Définition |
result_type
|
T
|
first_argument_type
|
T
|
second_argument_type
|
T
|
Fonction membre
| retourne la somme des deux paramètres (fonction membre publique) | |
std :: Plus ::
Original:
std::plus::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
operator()
std :: Plus ::
Original:
std::plus::
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
<tbody> </tbody>
|
|
||
Retourne la somme de p1 et de p2.
Paramètres
| p1, p2 | - | Les valeurs à additionner |
Valeur de retour
Le résultat de p1 + p2.
Exceptions
(aucune)
Implémentation possible
T operator()(const T &p1, const T &p2) const { return p1 + p2; }