Namespaces
Variants
Views
Actions

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

From cppreference.com
Revision as of 11:46, 6 October 2011 by Cubbi (Talk | contribs)

Template:cpp/container//sidebar

void swap( {{{1}}}& other );
Template:cpp/container/mark c++11 feature

Exchanges the contents of the container with those of other. All iterators and references remain valid.

Contents

Parameters

other - container to exchange the contents with

Return value

Template:return none

Exceptions

noexcept specification:  
noexcept
  

Complexity

Template:complex constant

See also

Template:cpp/container/dcl list std swap