Namespaces
Variants
Views
Actions

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

From cppreference.com
Revision as of 13:45, 11 October 2011 by P12bot (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

(none)

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant

See also

Template:cpp/container/dcl list std swap