[deque.cons] (original) (raw)

23 Containers library [containers]

23.3 Sequence containers [sequences]

23.3.5 Class template deque [deque]

23.3.5.2 Constructors, copy, and assignment [deque.cons]

constexpr explicit deque(const Allocator&);

Effects: Constructs an emptydeque, using the specified allocator.

constexpr explicit deque(size_type n, const Allocator& = Allocator());

Preconditions: T is Cpp17DefaultInsertable into deque.

Effects: Constructs a deque withn default-inserted elements using the specified allocator.

constexpr deque(size_type n, const T& value, const Allocator& = Allocator());

Preconditions: T is Cpp17CopyInsertable into deque.

Effects: Constructs adequewith n copies of value, using the specified allocator.

template<class InputIterator> constexpr deque(InputIterator first, InputIterator last, const Allocator& = Allocator());

Effects: Constructs adequeequal to the range [first, last), using the specified allocator.

Complexity: Linear in distance(first, last).

Effects: Constructs a deque with the elements of the range rg, using the specified allocator.

Complexity: Linear in ranges​::​distance(rg).