std::experimental::packaged_task<R(Args...)>::packaged_task (library fundamentals TS)
From cppreference.com
< cpp | experimental | lib extensions | packaged task
| packaged_task() noexcept; |
(1) | (library fundamentals TS) |
| template< class F > explicit packaged_task( F&& f ); |
(2) | (library fundamentals TS) |
| template< class F, class Allocator > explicit packaged_task( std::allocator_arg_t, const Allocator& alloc, F&& f ); |
(3) | (library fundamentals TS) |
| packaged_task( const packaged_task& ) = delete; |
(4) | (library fundamentals TS) |
| packaged_task( packaged_task&& rhs ) noexcept; |
(5) | (library fundamentals TS) |
Constructs a new std::experimental::packaged_task object.
1) Constructs a
std::experimental::packaged_task object with no task and no shared state.2) Constructs a
std::experimental::packaged_task object with a shared state and a copy of the task, initialized with std::forward<F>(f). This constructor does not participate in overload resolution if