bsl::stack::stack

Same as the related overload above for stack.

Synopsis

Declared in <bslstl_stack.h>

template<
    class INPUT_ITER,
    class ALLOCATOR>
stack(
    INPUT_ITER first,
    INPUT_ITER last,
    ALLOCATOR const& allocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;

Parameters

NameDescription
firstbeginning of the input range
lastend of the input range
allocatorallocator used to supply memory