bsl::swap

Exchange the values of the specified a and b objects.

Synopsis

Declared in <bslstl_vector.h>

void
swap(
    vector& a,
    vector& b) noexcept(noexcept(a.d_impl.swap(b.d_impl)));

NOTE

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.

Parameters

NameDescription
afirst vector to swap
bsecond vector to swap