◐ Shell
clean mode source ↗

std::modulus - 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.

Click here for the English version of this page

<metanoindex/>

<tbody> </tbody>

Elemento definito nell'header

<functional>

template< class T > struct modulus;

Oggetto Funzione per calcolo resti delle divisioni. Implementa operator% per T tipo.

Original:

Function object for computing remainders of divisions. Implements operator% for 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.
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

Membri funzioni

restituisce il resto della divisione del primo argomento dal secondo argomento

Original:

returns the remainder from 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 :: Modulo ::

Original:

std::modulus::

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

operator()

<tbody> </tbody>

T operator()( const T& lhs, const T& rhs ) const;

Returns the remainder of the division of lhs by rhs.

Parameters

lhs, rhs -

valori per dividere una da un altro

Original:

values to divide one by another

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;
}