Swap the value of this pair with the value of the specified other pair by applying swap to each of the first and second pair fields.
other
swap
first
second
Declared in <bslstl_pair.h>
<bslstl_pair.h>
void swap(pair& other) noexcept(/* see-below */);
This function is potentially-throwing unless bsl::is_nothrow_swappable<T1>::value && bsl::is_nothrow_swappable<T2>::value.
bsl::is_nothrow_swappable<T1>::value && bsl::is_nothrow_swappable<T2>::value