std::experimental::packaged_task (library fundamentals TS)
From cppreference.com
< cpplrm; | experimentallrm; | lib extensions
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.
Defined in header <experimental/future>
|
||
template< class > class packaged_task; //not defined |
(1) | (library fundamentals TS) |
template< class R, class ...Args > class packaged_task<R(Args...)>; |
(2) | (library fundamentals TS) |
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.
Member types
Member type | Definition |
allocator_type
|
std::experimental::erased_type |
Member functions
constructs the task object (public member function) | |
retrieves a pointer to the memory resource used by this object to allocate memory (public member function) |
Non-member function
specializes the swap algorithm (function template) |
Helper classes
specializes the std::uses_allocator type trait (class template specialization) |