<div class="t-tr-text">C + +: conceitos<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
|
|
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/>
You can help to correct and verify the translation. Click here for instructions.
Requisitos
Ci & Ci != 0 e Ci & Cj == 0.Ci & Ci != 0 and Ci & Cj == 0.You can help to correct and verify the translation. Click here for instructions.
operator&, operator|, operator^, operator~, operator&=, operator|=, e operator^= são definidas para valores do tipo de máscara de bits e têm a mesma semântica que os correspondentes operadores internos sobre inteiros sem sinal teria se os elementos foram bitmask o inteiro distinta potências de dois.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.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.
X |= Y
|
define o valor de Y no objeto
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
|
X.. limpa o valor Y no X. objeto
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
|
Y indica que o valor é definido no objeto X
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. |
constexpr bitmask.constexpr value of the bitmask type.You can help to correct and verify the translation. Click here for instructions.
Uso
BitmaskType:BitmaskType:You can help to correct and verify the translation. Click here for instructions.
- std::ctype_base::mask
- std::ios_base::fmtflags
- std::ios_base::iostate
- std::ios_base::openmode
std::regex_traits::char_class_type- std::regex_constants::syntax_option_type
- std::regex_constants::match_flag_type
- std::launch,
int n = std::ios_base::hex), é porque não portável std::ios_base::fmtflags não é necessariamente implicitamente conversível para int.int n = std::ios_base::hex), is nonportable because std::ios_base::fmtflags is not necessarily implicitly convertible to int.You can help to correct and verify the translation. Click here for instructions.