std::bitset::reference
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/>
template <size_t N>
class bitset {
// ...
public:
class reference {
friend class bitset;
reference() noexcept;
public:
~reference() noexcept;
reference& operator=(bool x) noexcept;
reference& operator=(const reference&) noexcept;
bool operator~() const noexcept;
operator bool() const noexcept;
reference& flip() noexcept;
};
// ...
};
(Spcifications sont
noexcept 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.
La classe bitset comprend std::bitset::reference comme une classe imbrique accessible au public. Cette classe est utilise comme un objet proxy pour permettre aux utilisateurs d'interagir avec les bits individuels d'un bitset, depuis standards types C + + (comme rfrences et des pointeurs) ne sont pas construits avec suffisamment de prcision pour spcifier les bits individuels .
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.
La principale utilisation de std::bitset::reference est de fournir une l-value qui peut tre retourn partir oprateur [] .
Original:
The primary use of std::bitset::reference is to provide an l-value that can be returned from oprateur [].
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.
Tout lit ou crit sur un bitset qui se produisent par l'intermdiaire d'un std::bitset::reference potentiellement lire ou crire l'ensemble du sous-jacent bitset .
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.
Voir aussi
accde bit spcifique 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. (fonction membre publique) | |