Exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise.

Synopsis

Declared in <bdlc_compactedarray.h>

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

Created with MrDocs