Standard C++ Library Reference ISO/IEC (VERSION3)

vector<bool, Alloc>
template<class Alloc>
class vector<bool, Alloc> {
public:
class reference;
typedef bool const_reference;
typedef T0 iterator;
typedef T1 const_iterator;
typedef T4 pointer;
typedef T5 const_pointer;
void flip();
static void swap(reference left, reference right);
// rest same as template class vector
};
The class is a partial specialization of template class vector for elements of type bool. It
alters the definition of four member types (to optimize the packing and unpacking of elements)
and adds two member functions. Its behavior is otherwise the same as for template class
vector.
vector<bool, Alloc>::const_iterator
typedef T1 const_iterator;
The type describes an object that can serve as a constant random-access iterator for the
controlled sequence. It is described here as a synonym for the unspecified type T1.
vector<bool, Alloc>::const_pointer
typedef T5 const_pointer;
The type describes an object that can serve as a pointer to a constant element of the controlled
sequence. It is described here as a synonym for the unspecified type T5.
vector<bool, Alloc>::const_reference
typedef bool const_reference;
The type describes an object that can serve as a constant reference to an element of the
controlled sequence, in this case bool.