std::swap(std::weak_ptr)
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> template< class T > void swap( weak_ptr<T> &lhs, weak_ptr<T> &rhs ); |
(seit C++11) | |
Spezialisiert die std::swap Algorithmus für
std::weak_ptr. Tauscht die Zeiger lhs und rhs. Anrufe lhs.swap(rhs) .Original:
Specializes the std::swap algorithm for
std::weak_ptr. Swaps the pointers of lhs and rhs. Calls lhs.swap(rhs).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| lhs, rhs | - | intelligente Zeiger, dessen Inhalt zu tauschen
Original: smart pointers whose contents to swap 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.
You can help to correct and verify the translation. Click here for instructions.
Komplexität
Constant
Original:
Constant
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
