Create a stack by moving from the specified container.
Declared in <bslstl_stack.h>
explicit
stack(BloombergLP::bslmf::MovableRef<CONTAINER> container);
Create a stack whose underlying container has the value of the specified container (on entry) by moving the contents of container to the new stack. The allocator associated with container is propagated for use in the new stack. container is left in a valid but unspecified state.
| Name | Description |
|---|---|
| container | underlying container to move from |