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)));

Parameters

Name

Description

a

first vector to swap

b

second vector to swap

Created with MrDocs