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. Note that in case the allocators are different this function places a clone of a into b, and vice versa. See {Value Semantics} on details of the cloning that may happen.

Synopsis

Declared in <bdld_manageddatum.h>

void
swap(
    ManagedDatum& a,
    ManagedDatum& b);

Created with MrDocs