Exchange the value of this stack with the value of the specified other stack.

Synopsis

Declared in <bslstl_stack.h>

void
swap(stack& other) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless bsl::is_nothrow_swappable<CONTAINER>::value.

Parameters

Name

Description

other

stack whose value is exchanged with this stack

Created with MrDocs