Namespaces
Variants
Views
Actions

std::swap(std::multiset)

From cppreference.com
< cpp‎ | container‎ | multiset
Revision as of 20:34, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
template< class Key, class Compare, class Alloc >

void swap( multiset<Key,Compare,Alloc>& lhs,

           multiset<Key,Compare,Alloc>& rhs );

Specializes the std::swap algorithm for std::multiset. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).

Contents

[edit] Parameters

lhs, rhs - containers whose contents to swap

[edit] Return value

(none)

[edit] Complexity

Constant.

[edit] See also

swaps the contents
(public member function) [edit]