[#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`. == Synopsis Declared in `<bslstl_stack.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit stack(CONTAINER const& container); ---- == Description Create a stack whose underlying container has the value of the specified `container`. The currently installed default allocator is used to supply memory. == Parameters [cols="1,4"] |=== | Name| Description | *container* | underlying container whose contents initialize this stack |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#