Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/container/swap"

From cppreference.com
(+noexcept)
(+see also to the nonmember swap specialization)
Line 31: Line 31:
  
 
===See also===
 
===See also===
 
+
{{dcl list begin}}
{{todo}}
+
{{dcl list template | cpp/container/dcl list std_swap |{{{1|}}}}}
 +
{{dcl list end}}

Revision as of 11:46, 6 October 2011

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