void swap(bit_vector&) | Container | Swaps the contents of two bit_vectors. |
void swap(bit_vector::reference x, bit_vector::reference y) | bit_vector | See below. |
iterator insert(iterator pos, bool x) | Sequence | Inserts |
template <class InputIterator> void insert(iterator pos, InputIterator f, InputIterator l) [1] | Sequence | Inserts the range |
void insert(iterator pos, size_type n, bool x) | Sequence | Inserts |
void erase(iterator pos) | Sequence | Erases the element at position |
void erase(iterator first, iterator last) | Sequence | Erases the range |
void clear() | Sequence | Erases all of the elements. |
bool operator==(const bit_vector&, const bit_vector&) | Forward Container | Tests two bit_vectors for equality. This is a global function, not a member function. |
bool operator<(const bit_vector&, const bit_vector&) | Forward Container | Lexicographical comparison. This is a global function, not a member function. |
These members are not defined in the Random access container and Back insertion sequence requirements, but are specific to
Member | Description |
---|---|
reference | A proxy class that acts as a reference to a single bit; the reason it exists is to allow expressions like |
size_type capacity() const | Number of bits for which memory has been allocated. |
void reserve(size_type n) | If |
void swap(bit_vector::reference x, bit_vector::reference y) | Swaps the bits referred to by |
Вы читаете Standard Template Library Programmer's Guide