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" /> <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
Espaces de noms
Variantes
Affichages
Actions

<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
< cpp‎ | concept

 
 
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.
Bibliothèque é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
Récipient
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Éléments 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 aléatoires
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.
Simultanéité
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.
 
Définit un type qui peut être utilisé pour représenter un ensemble de valeurs constantes ou toute combinaison de ces valeurs. Ce trait est généralement mis en œuvre par les types entiers, std::bitset ou énumérations (portée et sans portée) avec les surcharges d'opérateur supplémentaires .
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.

[modifier] Exigences

Le type de masque de bits prend en charge un nombre fini d'éléments 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 opérateurs binaires operator&, operator|, operator^, operator~, operator&=, operator|= et operator^= sont définies pour les valeurs de type masque et ont la même sémantique que les correspondants intégrés dans des opérateurs sur les entiers non signés aurait si les éléments 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 formés 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
définit 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 défini 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 élément de masque de bits representible est définie 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.

[modifier] D'utilisation

Les types suivants de la bibliothèque 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 nécessairement 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.