bsl::stack::stack

Create a stack from the range [first, last)].

Synopsis

Declared in <bslstl_stack.h>

template<class INPUT_ITER>
stack(
    INPUT_ITER first,
    INPUT_ITER last);

Description

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

Parameters

NameDescription
firstbeginning of the input range
lastend of the input range