Namespaces
Variants
Actions

std::experimental::packaged_task<R(Args...)>::packaged_task (library fundamentals TS)

From cppreference.com
 
 
Experimental
Technical Specification
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
Experimental Non-TS
Pattern Matching
Linear Algebra
std::execution
Contracts
2D Graphics
 
 
 
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