bsl::stack::operator=

Assignment operators

Synopses

Declared in <bslstl_stack.h>

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.

stack<VALUE, CONTAINER>&
operator=(stack const& rhs);
» more...

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. The contents of rhs are moved to this stack using the move-assignment operator of CONTAINER. rhs is left in a valid but unspecified state, and if an exception is thrown, *this is left in a valid but unspecified state.

stack<VALUE, CONTAINER>&
operator=(BloombergLP::bslmf::MovableRef<stack> rhs) noexcept(false);
» more...