std::bitset::flip
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> bitset<N>& flip(); |
(1) | |
bitset<N>& flip( size_t pos ); |
(2) | |
Flips bits, i.e. changes true values to false and false values to true. Equivalent to a logical NOT operation on part or all of the bitset.
1) Flips all bits (equivalent to operator~())
2) Flips the bit at the position pos.
Parametri
| pos | - | the position of the bit to flip |
Valore di ritorno
*this
Eccezioni
1)
2)
lancia std::out_of_range se
pos non corrisponde a una posizione valida all'interno del bitset.Original:
throws std::out_of_range if
pos does not correspond to a valid position within the bitset.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.
Esempio
| This section is incomplete Reason: no example |
Vedi anche
sets bits to true or given value (metodo pubblico) | |
imposta i bit a falseOriginal: sets bits to falseThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
esegue binaria AND, OR, XOR e NOT Original: performs binary AND, OR, XOR and NOT The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |