Swap the value of the specified lhs stack with the value of the specified rhs stack.

Synopsis

Declared in <bslstl_stack.h>

template<
    class VALUE,
    class CONTAINER>
void
swap(
    stack<VALUE, CONTAINER>& lhs,
    stack<VALUE, CONTAINER>& rhs) noexcept(false);

Parameters

Name

Description

lhs

first stack to exchange

rhs

second stack to exchange

Created with MrDocs