bsl::queue::queue

Constructors

Synopses

Declared in <bslstl_queue.h>

Create an empty queue having a container of the parameterized CONTAINER type.

explicit
queue();
» more...

Create a queue having the value of the specified original.

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

Create a queue by moving from the specified container.

explicit
queue(BloombergLP::bslmf::MovableRef<CONTAINER> container);
» more...

Create a queue by moving from the specified container.

queue(BloombergLP::bslmf::MovableRef<queue> container);
» more...

Create a queue having the specified container that holds elements of the parameterized VALUE type.

explicit
queue(CONTAINER const& container);
» more...

Create an empty queue that uses basicAllocator.

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

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

template<class INPUT_ITER>
queue(
    INPUT_ITER first,
    INPUT_ITER last);
» more...

Create a queue from the elements of the specified range.

template<class t_RANGE>
queue(
    std::from_range_t unused,
    t_RANGE&& range);
» more...

Create a queue from the specified container using basicAllocator.

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

Create a queue by moving from original using basicAllocator.

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

Create a queue from container using basicAllocator.

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

Create a queue from original using basicAllocator.

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

Create a queue from [first, last)] using allocator.

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

Create a queue from range using allocator.

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

Parameters

NameDescription
originalqueue to copy
containercontainer to move from
basicAllocatorallocator used to supply memory
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