Efficiently exchange the values of the specified a and b objects. This function provides the no‐throw exception‐safety guarantee.

Synopsis

Declared in <bslstl_mapcomparator.h>

template<
    class KEY,
    class VALUE,
    class COMPARATOR>
void
swap(
    MapComparator<KEY, VALUE, COMPARATOR>& a,
    MapComparator<KEY, VALUE, COMPARATOR>& b);

Created with MrDocs