Efficiently exchange the value of this array with that of other.

Synopsis

Declared in <bdlc_compactedarray.h>

void
swap(CompactedArray& other);

Description

This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless this array was created with the same allocator as other.

Parameters

Name

Description

other

array with which to exchange values

Created with MrDocs