Constructors
Synopses
Declared in <bslstl_deque.h>
Create an empty deque.
deque();
Create a deque with the same value as original.
Create a deque by moving from original.
deque(BloombergLP::bslmf::MovableRef<deque> original);
Create an empty deque using basicAllocator.
explicit
deque(ALLOCATOR const& basicAllocator);
Create a deque of numElements value‐initialized elements.
explicit
deque(
size_type numElements,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a deque by moving from original using basicAllocator.
deque(
BloombergLP::bslmf::MovableRef<deque> original,
ALLOCATOR const& basicAllocator);
Create a deque from the elements of values.
deque(
std::initializer_list<value_type> values,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a deque with the value of original using basicAllocator.
Create a deque of numElements copies of value.
deque(
size_type numElements,
VALUE_TYPE const& value,
ALLOCATOR const& basicAllocator = ALLOCATOR());
Create a deque from the range [first, last)].
template<class INPUT_ITERATOR>
deque(
INPUT_ITERATOR first,
INPUT_ITERATOR last,
ALLOCATOR const& basicAllocator = ALLOCATOR());
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());
Parameters
Name |
Description |
original |
deque to copy |
basicAllocator |
allocator used to supply memory |
numElements |
number of elements to create |
values |
initializer list of elements to insert |
value |
value used to initialize each element |
first |
beginning of the range to copy |
last |
end of the range to copy |
tag |
disambiguation tag for range construction |
range |
input range of elements to insert |
Created with MrDocs