std::negate
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 negate; |
||
Oggetto funzione per l'esecuzione di negazione. Invita efficace operator- in un'istanza di
T
tipo.Original:
Function object for performing negation. Effectively calls operator- on an instance 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
|
argument_type
|
T
|
[modifica] Membri funzioni
operator() |
restituisce la negazione della tesi Original: returns the negation of the 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 :: negare ::Original:std::negate::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::negate::
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& arg ) const; |
||
Returns the negation of arg
.
Parameters
arg | - | valore per calcolare negazione
Original: value to compute negation of 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 -arg.
Exceptions
(none)
Possible implementation
T operator()(const T &arg) const { return -arg; } |