Exchange the values of the specified a and b multisets.

Synopsis

Declared in <bslstl_multiset.h>

template<
    class KEY,
    class COMPARATOR,
    class ALLOCATOR>
void
swap(
    multiset<KEY, COMPARATOR, ALLOCATOR>& a,
    multiset<KEY, COMPARATOR, ALLOCATOR>& b) noexcept(noexcept(a.swap(b)));

Parameters

Name

Description

a

first multiset to exchange

b

second multiset to exchange

Created with MrDocs