Standard C++ Library Reference ISO/IEC (VERSION3)
vector<bool, Alloc>::flip
void flip();
The member function inverts the values of all the members of the controlled sequence.
vector<bool, Alloc>::iterator
typedef T0 iterator;
The type describes an object that can serve as a random-access iterator for the controlled
sequence. It is described here as a synonym for the unspecified type T0.
vector<bool, Alloc>::pointer
typedef T4 pointer;
The type describes an object that can serve as a pointer to an element of the controlled
sequence. It is described here as a synonym for the unspecified type T4.
vector<bool, Alloc>::reference
class reference {
public:
reference& operator=(const reference& right);
reference& operator=(bool val);
void flip();
bool operator~() const;
operator bool() const;
};
The type describes an object that can serve as a reference to an element of the controlled
sequence. Specifically, for two objects ref and ref2 of class reference:
bool(ref) yields the value of the element designated by ref●
~ref yields the inverted value of the element designated by ref●
ref.flip() inverts the value designated by ref●
ref2 = bool(ref) and ref2 = ref both assign the value of the element
designated by ref to the element designated by ref2
●
It is unspecified how member functions of class vector<bool> construct objects of class
reference that designate elements of a controlled sequence. The default constructor for class
reference generates an object that refers to no such element.