Constructors
Synopses
Declared in <bslstl_queue.h>
Create an empty queue having a container of the parameterized CONTAINER type.
explicit
queue();
Create a queue having the value of the specified original.
Create a queue by moving from the specified container.
explicit
queue(BloombergLP::bslmf::MovableRef<CONTAINER> container);
Create a queue by moving from the specified container.
queue(BloombergLP::bslmf::MovableRef<queue> container);
Create a queue having the specified container that holds elements of the parameterized VALUE type.
explicit
queue(CONTAINER const& container);
Create an empty queue that uses basicAllocator.
template<class ALLOCATOR>
explicit
queue(ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
Create a queue from the iterator range [first, last)].
template<class INPUT_ITER>
queue(
INPUT_ITER first,
INPUT_ITER last);
Create a queue from the elements of the specified range.
template<class t_RANGE>
queue(
std::from_range_t unused,
t_RANGE&& range);
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;
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;
Create a queue from container using basicAllocator.
template<class ALLOCATOR>
queue(
CONTAINER const& container,
ALLOCATOR const& basicAllocator)
requires bsl::uses_allocator<CONTAINER, ALLOCATOR>::value;
Create a queue from original using basicAllocator.
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;
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;
Parameters
Name |
Description |
original |
queue to copy |
container |
container to move from |
basicAllocator |
allocator used to supply memory |
first |
beginning of the range of elements to insert |
last |
end of the range of elements to insert |
unused |
tag selecting the from‐range constructor overload |
range |
input range of elements to insert |
allocator |
allocator used to supply memory |
Created with MrDocs