◐ Shell
clean mode source ↗

std::swap(std::basic_string) – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class T, class Alloc > void swap( basic_string<T,Alloc> &lhs, basic_string<T,Alloc> &rhs );

Spezialisiert die std::swap Algorithmus für std::basic_string. Tauscht die Inhalte lhs und rhs. Anrufe lhs.swap(rhs) .

Original:

Specializes the std::swap algorithm for std::basic_string. Swaps the contents 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.

Parameter

lhs, rhs -

Strings, deren Inhalte zu tauschen

Original:

strings 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.

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.

Siehe auch

tauscht die Inhalte

Original:

swaps the contents

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


(öffentliche Elementfunktion) [edit]