[#bsl-stack-05-2constructor-04e]
= xref:bsl.adoc[bsl]::xref:bsl/stack-05.adoc[stack]::stack
:relfileprefix: ../../
:mrdocs:

Create a stack by moving from the specified `original`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stack&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
stack(xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;stack&gt;] original);
----

== Description

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| stack to move from
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
