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

Create a stack having the value of the specified stack `original` and use the specified `basicAllocator` to supply memory&period; If `CONTAINER&colon;&colon;allocator&lowbar;type` does not exist, this constructor may not be used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
stack(
    xref:bsl/stack-05.adoc[stack] const& original,
    ALLOCATOR const& basicAllocator,
    ALLOCATOR* = 0)
requires bsl&colon;&colon;uses&lowbar;allocator&lt;CONTAINER, ALLOCATOR&gt;&colon;&colon;value;
----


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