This page is about the modified version of std::packaged_task with type-erased allocator support provided by the Library Fundamentals TSes. For the version of packaged_task
provided by the concurrency TS supporting the std::future
improvements made by that TS, see std::experimental::concurrency_v1::packaged_task.
template< class > class packaged_task; //not defined
(1) (library fundamentals TS)template< class R, class ...Args >
class packaged_task<R(Args...)>;
std::experimental::fundamentals_v1::packaged_task
(and std::experimental::fundamentals_v2::packaged_task
) is a modified version of std::packaged_task provided by the library fundamentals TS with support for type-erased allocators.
std::packaged_task<R(Args...)>
) [edit] moves the task object
std::packaged_task<R(Args...)>
) [edit] checks if the task object has a valid function
std::packaged_task<R(Args...)>
) [edit] swaps two task objects
std::packaged_task<R(Args...)>
) [edit] Getting the result returns a std::future associated with the promised result
std::packaged_task<R(Args...)>
) [edit] Execution executes the function
std::packaged_task<R(Args...)>
) [edit] executes the function ensuring that the result is ready only once the current thread exits
std::packaged_task<R(Args...)>
) [edit] resets the state abandoning any stored results of previous executions
std::packaged_task<R(Args...)>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4