bsl::priority_queue::priority_queue

Constructors

Synopses

Declared in <bslstl_priorityqueue.h>

Create an empty priority queue.

priority_queue();
» more...

Create a priority queue having the value of the specified original.

priority_queue(priority_queue const& original);
» more...

Create a priority queue by moving from the specified original.

priority_queue(BloombergLP::bslmf::MovableRef<priority_queue> original);
» more...

Create an empty priority queue with the specified comparator.

explicit
priority_queue(COMPARATOR const& comparator);
» more...

Create an empty priority queue that uses basicAllocator.

template<class ALLOCATOR>
explicit
priority_queue(ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create a priority queue by moving from container with comparator.

explicit
priority_queue(
    COMPARATOR const& comparator,
    BloombergLP::bslmf::MovableRef<CONTAINER> container);
» more...

Create a priority queue adapting container with comparator.

priority_queue(
    COMPARATOR const& comparator,
    CONTAINER const& container);
» more...

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

template<class INPUT_ITERATOR>
priority_queue(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last);
» more...

Create a priority queue by moving from original using basicAllocator.

template<class ALLOCATOR>
priority_queue(
    BloombergLP::bslmf::MovableRef<priority_queue> original,
    ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create an empty priority queue with comparator using basicAllocator.

template<class ALLOCATOR>
priority_queue(
    COMPARATOR const& comparator,
    ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create a priority queue from original using basicAllocator.

template<class ALLOCATOR>
priority_queue(
    priority_queue const& original,
    ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create a priority queue from the elements of the specified range.

template<class t_RANGE>
priority_queue(
    std::from_range_t unused,
    t_RANGE&& range,
    COMPARATOR const& comparator = COMPARATOR());
» more...

Create a priority queue by moving from container using basicAllocator.

template<class ALLOCATOR>
priority_queue(
    COMPARATOR const& comparator,
    BloombergLP::bslmf::MovableRef<CONTAINER> container,
    ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create a priority queue from container using basicAllocator.

template<class ALLOCATOR>
priority_queue(
    COMPARATOR const& comparator,
    CONTAINER const& container,
    ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
» more...

Create a priority queue from range using allocator.

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;
» more...

Create a priority queue from [first, last)] by moving from container.

template<class INPUT_ITERATOR>
priority_queue(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    COMPARATOR const& comparator,
    BloombergLP::bslmf::MovableRef<CONTAINER> container);
» more...

Create a priority queue from [first, last)] adapting container.

template<class INPUT_ITERATOR>
priority_queue(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    COMPARATOR const& comparator,
    CONTAINER const& container);
» more...

Create a priority queue from range with comparator and allocator.

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

Parameters

NameDescription
originalpriority queue to copy
comparatorcomparator used to order elements
basicAllocatorallocator used to supply memory
containercontainer to move from
firstbeginning of the range of elements to insert
lastend of the range of elements to insert
unusedtag selecting the from-range constructor overload
rangeinput range of elements to insert
allocatorallocator used to supply memory