المتغيرات
فضاءات التسمية
أفعال

std::{{{1}}}::swap

من cppreference.com
void swap( {{{1}}}& other );
قالب:mark since none

Exchanges the contents of the container adaptor with those of ‎other‎. Effectively calls using std::swap; swap(c, other.c); swap(comp, other.comp);

محتويات

[تعديل] Parameters

other - container adaptor to exchange the contents with

[تعديل] Return value

(none)

[تعديل] Exceptions

noexcept specification:  (since C++11)

noexcept(noexcept(std::swap(c, other.c)) && noexcept(std::swap(comp, other.comp)))

[تعديل] Complexity

Same as underlying container (typically constant)

[تعديل] See also

قالب:dsc tfun