Exchange the values of the specified a and b objects.
Declared in <bslstl_vector.h>
void
swap(
vector& a,
vector& b) noexcept(noexcept(a.d_impl.swap(b.d_impl)));
This function is a hidden friend of vector<VALUE_TYPE*, ALLOCATOR>, declared only inside that class: it can be found only through argument-dependent lookup.
| Name | Description |
|---|---|
| a | first vector to swap |
| b | second vector to swap |