Efficiently exchange the state of this object with that of other.
Synopsis
Declared in <bslma_managedptr_members.h>
void
swap(ManagedPtr_Members& other);
Description
Efficiently exchange the state of this object with the state of the specified other object. This method provides the no‐throw exception‐safety guarantee. Note that if either object is in an unset state, then the only guarantee about the unset state that may be exchanged is that the pointer value shall be null.
Parameters
Name |
Description |
other |
object with which to exchange state |
Created with MrDocs