bsl::stack::stack

Create a stack by moving from the specified original.

Synopsis

Declared in <bslstl_stack.h>

stack(BloombergLP::bslmf::MovableRef<stack> original);

Description

Create a stack having the value of the specified original by moving the contents of original to the new stack. The allocator associated with original is propagated for use in the new stack. original is left in a valid but unspecified state.

Parameters

NameDescription
originalstack to move from