[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/concept/BitmaskType [Back]  [Original]

<div class="t-tr-text">Concepts C + +:<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> BitmaskType cppreference.com
cppreference.com
Espaces de noms
Variantes

<div class="t-tr-text">Concepts C + +:<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> BitmaskType

De cppreference.com

<metanoindex/>

 
 
C + + concepts
De base
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Bibliothque chelle
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
NullablePointer (C++11)
Hash (C++11)
Allocator
Rcipient
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lments de conteneurs
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CopyInsertable (C++11)
MoveInsertable (C++11)
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Nombres alatoires
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Simultanit
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
BasicLockable (C++11)
Lockable (C++11)
TimedLockable (C++11)
Mutex (C++11)
TimedMutex (C++11)
Autre
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Dfinit un type qui peut tre utilis pour reprsenter un ensemble de valeurs constantes ou toute combinaison de ces valeurs. Ce trait est gnralement mis en uvre par les types entiers, std::bitset ou numrations (porte et sans porte) avec les surcharges d'oprateur supplmentaires .
Original:
Defines a type that can be used to represent a set of constant values or any combination of those values. This trait is typically implemented by integer types, std::bitset, or enumerations (scoped and unscoped) with additional operator overloads.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exigences

Le type de masque de bits prend en charge un nombre fini d'lments de masque de bits, qui sont des valeurs distinctes du type masque, de telle sorte que, pour chaque paire Ci et Cj, et Ci & Ci != 0 Ci & Cj == 0 .
Original:
The bitmask type supports a finite number of bitmask elements, which are distinct values of the bitmask type, such that, for any pair Ci and Cj, Ci & Ci != 0 and Ci & Cj == 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les oprateurs binaires operator&, operator|, operator^, operator~, operator&=, operator|= et operator^= sont dfinies pour les valeurs de type masque et ont la mme smantique que les correspondants intgrs dans des oprateurs sur les entiers non signs aurait si les lments de bitmask taient au nombre entier distinct puissances de deux .
Original:
The bitwise operators operator&, operator|, operator^, operator~, operator&=, operator|=, and operator^= are defined for values of the bitmask type and have the same semantics as the corresponding built-in operators on unsigned integers would have if the bitmask elements were the distinct integer powers of two.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les expressions suivantes sont bien forms et ont la signification suivante pour tout X. BitsetType
Original:
The following expressions are well-formed and have the following meaning for any BitsetType X
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
X |= Y
dfinit la valeur Y dans le
Original:
sets the value Y in the object X
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
X &= ~Y
objet X.. efface la valeur Y dans le
Original:
clears the value Y in the object X
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
X&Y != 0
objet X.. indique que la valeur Y est dfini dans le X. objet
Original:
indicates that the value Y is set in the object X
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Chaque lment de masque de bits representible est dfinie comme une valeur constexpr du type masque de bits .
Original:
Each representible bitmask element is defined as a constexpr value of the bitmask type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

D'utilisation

Les types suivants de la bibliothque standard satisfaire BitmaskType:
Original:
The following standard library types satisfy BitmaskType:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Le code qui repose sur une certaine option de mise en uvre particulier (par exemple int n = std::ios_base::hex), est non portable parce std::ios_base::fmtflags n'est pas ncessairement implicitement convertible en int .
Original:
Code that relies on some particular implementation option (e.g. int n = std::ios_base::hex), is nonportable because std::ios_base::fmtflags is not necessarily implicitly convertible to int.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Web Proxy Viewer  |  New URL  |  Original Page