std::divides
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. |
Elemento definito nell'header <functional>
|
||
template< class T > struct divides; |
||
Oggetto funzione per l'esecuzione di divisione. Invita efficace operator/ su due istanze di
T
tipo.Original:
Function object for performing division. 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.
You can help to correct and verify the translation. Click here for instructions.
Indice |
[modifica] Membri tipi
Tipo
Original: Type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
result_type
|
T
|
first_argument_type
|
T
|
second_argument_type
|
T
|
[modifica] Membri funzioni
operator() |
restituisce il risultato della divisione del primo argomento dal secondo argomento Original: returns the result of the division of the first argument by the second argument The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |
std :: divide ::Original:std::divides::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.operator()
Original:
std::divides::
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.
T operator()( const T& lhs, const T& rhs ) const; |
||
Returns the result of division of lhs
by rhs
.
Parameters
lhs, rhs | - | valori di dividere uno dall'altro
Original: values to divide one by other The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
The result of lhs / rhs.
Exceptions
(none)
Possible implementation
T operator()(const T &lhs, const T &rhs) const { return lhs / rhs; } |