Defined in <stlab/concurrency/task.hpp>
template <class>
class task; /* undefined */
template <class R, class... Args>
class task<R(Args...)>

A type-erased nullary wrapper that supports mutable functions.

Tasks are movable, not copyable.

Member types

Member type Definition
result_type R

Member Functions

(constructor) Constructs a task
(destructor) Default-destructs a task

Associated Functions

Compares a task for not equal an empty task

Checks if a given task is equal to an empty task

(template function)

Exchanges two tasks

Associated Classes

A type-erased nullary wrapper that supports mutable functions.

(template class)