libycxx

constructor · 11 overloads

std::forward_list::forward_list

Scope
std::forward_list

Constructors

Overloads

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