[#bsl-stack-05-2constructor-043] = xref:bsl.adoc[bsl]::xref:bsl/stack-05.adoc[stack]::stack :relfileprefix: ../../ :mrdocs: Create a stack from `original` using `basicAllocator`. == Synopsis Declared in `<bslstl_stack.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> stack( xref:bsl/stack-05.adoc[stack] const& original, ALLOCATOR const& basicAllocator) requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value; ---- == Description Create a stack having the value of the specified stack `original` and use the specified `basicAllocator` to supply memory. If `CONTAINER::allocator_type` does not exist, this constructor may not be used. == Parameters [cols="1,4"] |=== | Name| Description | *original* | stack whose value is copied | *basicAllocator* | allocator used to supply memory |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#