constructor · 11 overloads
std::deque::deque
- Header
<deque>- Draft
- [deque.overview]
- Scope
std::deque- cppreference
- std::deque::deque
Constructors
Overloads
- (1)
constexpr deque() noexcept(is_nothrow_default_constructible_v<Allocator>); - (2)
constexpr deque(const deque& x); - (3)
constexpr deque(deque&& x) noexcept(is_nothrow_move_constructible_v<Allocator>); - (4)
explicit constexpr deque(const Allocator& a) noexcept; - (5)
explicit constexpr deque(size_type n, const Allocator& a = Allocator()); - (6)
constexpr deque(initializer_list<T> il, const Allocator& a = Allocator()); - (7)
constexpr deque(const deque& x, const Allocator& a); - (8)
constexpr deque(deque&& x, const Allocator& a) noexcept(always_equal); - (9)
constexpr deque( size_type n, const T& value, const Allocator& a = Allocator()); - (10)
template<class InputIterator> requires qualifies-as-input-iterator<InputIterator> constexpr deque( InputIterator first, InputIterator last, const Allocator& a = Allocator()); - (11)
template</* implementation-defined */ R> constexpr deque(from_range_t, R&& rg, const Allocator& a = Allocator());