swap

  void swap(bitvector& x);
  

Swaps the contents of *this and x. If the allocator_type contains state, the allocators are also swapped using an unqualified call to swap, with std::swap in scope.

Postcondition: *this == previous value of x and x == previous value of *this.

If swap on the allocator_type can not throw, then this operation will not throw an exception.