std::plus - 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>
| Elemento definito nell'header <functional> |
||
|
|
||
Oggetto funzione per l'esecuzione di aggiunta. Invita efficace operator+ su due istanze di T tipo.
Original:
Function object for performing addition. Effectively calls operator+ on two instances of type T.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Membri tipi
Tipo Original: Type The text has been machine-translated via Google Translate. |
Definition |
result_type
|
T
|
first_argument_type
|
T
|
second_argument_type
|
T
|
Membri funzioni
restituisce la somma di due argomenti Original: returns the sum of two arguments The text has been machine-translated via Google Translate. (metodo pubblico) | |
std :: più ::
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 :: più ::
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>
|
|
||
Returns the sum of lhs and rhs.
Parameters
| lhs, rhs | - | valori da sommare Original: values to sum The text has been machine-translated via Google Translate. |
Return value
The result of lhs + rhs.
Exceptions
(none)
Possible implementation
T operator()(const T &lhs, const T &rhs) const { return lhs + rhs; }