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