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