bsl::deque::deque

Constructors

Synopses

Declared in <bslstl_deque.h>

Create an empty deque.

deque();
» more...

Create a deque with the same value as original.

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

Create a deque by moving from original.

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

Create an empty deque using basicAllocator.

explicit
deque(ALLOCATOR const& basicAllocator);
» more...

Create a deque of numElements value-initialized elements.

explicit
deque(
    size_type numElements,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a deque by moving from original using basicAllocator.

deque(
    BloombergLP::bslmf::MovableRef<deque> original,
    ALLOCATOR const& basicAllocator);
» more...

Create a deque from the elements of values.

deque(
    std::initializer_list<value_type> values,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a deque with the value of original using basicAllocator.

deque(
    deque const& original,
    ALLOCATOR const& basicAllocator);
» more...

Create a deque of numElements copies of value.

deque(
    size_type numElements,
    VALUE_TYPE const& value,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

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

template<class INPUT_ITERATOR>
deque(
    INPUT_ITERATOR first,
    INPUT_ITERATOR last,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Create a deque from the elements of range.

template<class t_RANGE>
deque(
    std::from_range_t tag,
    t_RANGE&& range,
    ALLOCATOR const& basicAllocator = ALLOCATOR());
» more...

Parameters

NameDescription
originaldeque to copy
basicAllocatorallocator used to supply memory
numElementsnumber of elements to create
valuesinitializer list of elements to insert
valuevalue used to initialize each element
firstbeginning of the range to copy
lastend of the range to copy
tagdisambiguation tag for range construction
rangeinput range of elements to insert