iterator erase(iterator position);
Removes the element at position. Elements in the range (position, end) are moved down by one in the bitvector. An iterator pointing to the element just after the erased element, in the modified bitvector, is returned.
Precondition: position is a dereferenceble iterator into this bitvector.
Postcondition: size() is decreased by one.
Throws nothing.
iterator erase(iterator first, iterator last);
Removes the range of elements [first, last). Elements in the range (last, end) are moved down by distance(first, last) in the bitvector. An iterator pointing to the element just after the erased range, in the modified bitvector, is returned.
Precondition: first is a dereferenceble iterator into this bitvector. last is an iterator into this bitvector. first <= last.
Postcondition: size() is decreased by last-first.
Throws nothing.