Exchange the value of this stack with the value of the specified other stack.
other
Declared in <bslstl_stack.h>
<bslstl_stack.h>
void swap(stack& other) noexcept(/* see-below */);
This function is potentially-throwing unless bsl::is_nothrow_swappable<CONTAINER>::value.
bsl::is_nothrow_swappable<CONTAINER>::value