bsl::stack::stack

Same as the preceding overload.

Synopsis

Declared in <bslstl_stack.h>

template<
    class t_RANGE,
    class t_ALLOCATOR>
stack(
    std::from_range_t tag,
    t_RANGE&& range,
    t_ALLOCATOR const& allocator)
requires bsl::uses_allocator<CONTAINER,t_ALLOCATOR>::value;

Parameters

NameDescription
tagdisambiguation tag for range construction
rangerange of elements used to initialize this stack
allocatorallocator used to supply memory