Namespaces
Variants
Views
Actions

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

From cppreference.com
Revision as of 13:21, 14 August 2011 by Korval (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

Complexity

Template:complex constant

See also