std::bitset::flip
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> bitset<N>& flip(); |
(1) | |
bitset<N>& flip( size_t pos ); |
(2) | |
Flips bits, à savoir les changements
true valeurs à false et valeurs false à true. Équivalent à une opération logique NON sur tout ou partie de la bitset .Original:
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.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.
1)
Inverse tous les bits (équivalent à
operator~())Original:
Flips all bits (equivalent to
operator~())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.
2)
Inverse le bit à la position
pos .Original:
Flips the bit at the position
pos.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.
Paramètres
| pos | - | la position du bit à retourner
Original: the position of the bit to flip The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Retourne la valeur
*this
Exceptions
1)
2)
jette std::out_of_range si
pos ne correspond pas à une position valable dans le 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.
Exemple
| This section is incomplete Reason: no example |
Voir aussi
définit les bits à true ou valeur donnéeOriginal: sets bits to true or given valueThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) | |
définit les bits à 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. (fonction membre publique) | |
effectue binaire AND, OR, XOR et 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. (fonction membre publique) | |