Efficiently exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee.
Synopsis
Declared in <bslma_managedptr.h>
template<class TARGET_TYPE>
void
swap(
ManagedPtr<TARGET_TYPE>& a,
ManagedPtr<TARGET_TYPE>& b);
Parameters
Name |
Description |
a |
first managed pointer to exchange |
b |
second managed pointer to exchange |
Created with MrDocs