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

Create a stack passing the specified `first` and `last` to the constructor of the underlying container&period; Optionally specify an `allocator` used to supply memory&period; If `allocator` is not specified, a default&hyphen;constructed object of the (template parameter) type `ALLOCATOR` is used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITER&gt;
stack(
    INPUT&lowbar;ITER first,
    INPUT&lowbar;ITER last);
----


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