constructor · 5 overloads
std::packaged_task<R(ArgTypes...)>::packaged_task
- Header
<future>- Draft
- [future.syn]
- Scope
std::packaged_task<R(ArgTypes...)>- cppreference
- <future> nearest page
Constructors
Overloads
- (1)
packaged_task() noexcept = default; - (2)
packaged_task(const packaged_task& other) = delete; - (3)
packaged_task(packaged_task&& rhs) noexcept; - (4)
template<class F> requires (!is_same_v<remove_cvref_t<F>, packaged_task>) explicit packaged_task(F&& f); - (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);