std::bitset::reference
Da 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. |
template<size_t N>class bitset {// ...public:class reference {friendclass bitset; reference()noexcept;public: ~reference()noexcept; reference& operator=(bool x)noexcept; reference& operator=(const reference&)noexcept;bool operator~()constnoexcept; operator bool()constnoexcept; reference& flip()noexcept;};// ...};
(Especificações noexcept são de (C++11))
Original:
(noexcept specifications are from (C++11))
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.
A classe inclui bitset std::bitset::reference como uma classe publicamente acessível aninhada. Essa classe é usada como um objeto de proxy para permitir que os usuários interajam com pedaços individuais de um bitset, desde padrão C + + tipos (como referências e ponteiros) não são construídos com precisão suficiente para especificar bits individuais.
Original:
The bitset class includes std::bitset::reference as a publicly-accessible nested class. This class is used as a proxy object to allow users to interact with individual bits of a bitset, since standard C++ types (like references and pointers) are not built with enough precision to specify individual bits.
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.
A principal utilização de std::bitset::reference é o de proporcionar um valor de l que pode ser retornado a partir operador [].
Original:
The primary use of std::bitset::reference is to provide an l-value that can be returned from operador [].
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.
Qualquer lê ou escreve um bitset que isso aconteça através de um std::bitset::reference potencialmente ler ou escrever para o bitset toda subjacente.
Original:
Any reads or writes to a bitset that happen via a std::bitset::reference potentially read or write to the entire underlying 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.
[editar]Veja também
acessa pouco específico Original: accesses specific bit The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (função pública membro) |