libycxx

constructor · 5 overloads

std::packaged_task<R(ArgTypes...)>::packaged_task

Header
<future>
Scope
std::packaged_task<R(ArgTypes...)>
cppreference
<future> nearest page

Constructors

Overloads

  1. packaged_task() noexcept = default;
    (1)
  2. packaged_task(const packaged_task& other) = delete;
    (2)
  3. packaged_task(packaged_task&& rhs) noexcept;
    (3)
  4. template<class F>
      requires (!is_same_v<remove_cvref_t<F>, packaged_task>)
    explicit packaged_task(F&& f);
    (4)
  5. template<class F, class Allocator>
      requires (!is_same_v<remove_cvref_t<F>, packaged_task>)
    explicit packaged_task(allocator_arg_t, const Allocator& a, F&& f);
    (5)