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

Create a stack whose underlying container has the value of the specified `container`&period; The currently installed default allocator is used to supply memory&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
stack(CONTAINER const& container);
----


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