bsl::priority_queue::priority_queue

Create a priority queue from range using allocator.

Synopsis

Declared in <bslstl_priorityqueue.h>

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

Description

Same as the preceding overload.

Parameters

NameDescription
unusedtag selecting the from-range constructor overload
rangeinput range of elements to insert
allocatorallocator used to supply memory