Swap the value of the specified lhs stack with the value of the specified rhs stack.
Declared in <bslstl_stack.h>
template<
class VALUE,
class CONTAINER>
void
swap(
stack<VALUE, CONTAINER>& lhs,
stack<VALUE, CONTAINER>& rhs) noexcept(false);
| Name | Description |
|---|---|
| lhs | first stack to exchange |
| rhs | second stack to exchange |