Exchange the values of the specified a and b objects.

Synopsis

Declared in <bdlc_packedintarray.h>

template<class TYPE>
void
swap(
    PackedIntArray<TYPE>& a,
    PackedIntArray<TYPE>& b);

Description

This function provides the no‐throw exception‐safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise.

Parameters

Name

Description

a

first array to exchange

b

second array to exchange

Created with MrDocs