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

Synopsis

Declared in <bdld_manageddatum.h>

void
swap(ManagedDatum& other);

Description

Efficiently exchange the value of this object with the value of the specified other object. This method provides the no‐throw exception‐safety guarantee. The behavior is undefined unless this object was created with the same allocator as other.

Parameters

Name

Description

other

object with which to exchange values

Created with MrDocs