std::vector<bool>::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 <class Allocator>
class vector<bool, Allocator> {
// ...
public:
class reference {
friend class vector;
reference();
public:
~reference();
operator bool() const;
reference& operator=(bool x);
reference& operator=(const reference&);
void flip();
};
// ...
};
La spcialisation
std::vector<bool> dfinit std::vector<bool>::reference comme une classe imbrique accessible au public. std::vector<bool>::reference mandataires du comportement de rfrences un seul bit dans std::vector<bool> . Original:
The
std::vector<bool> specialization defines std::vector<bool>::reference as a publicly-accessible nested class. std::vector<bool>::reference proxies the behavior of references to a single bit in std::vector<bool>. 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.
operator boolrenvoie true lorsque le bit est activ .Original:operator boolreturns true when the bit is set.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.- Les oprateurs d'affectation dfinir et effacer le bit de donne .Original:The assignment operators set and clear the given bit.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. flipinverse l'tat du bit .Original:flipinverts the state of the bit.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Voir aussi
| accde l'lment spcifi (fonction membre publique de std::vector)
| |