◐ Shell
clean mode source ↗

std::shared_ptr::swap – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

void swap( shared_ptr& r );

Exchanges die Inhalte *this und r

Original:

Exchanges the contents of *this and r

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parameter

r -

Smart-Pointer, um den Inhalt mit auszutauschen

Original:

smart pointer to exchange the contents with

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ausnahmen