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

Name

Description

a

first vector to swap

b

second vector to swap

Created with MrDocs