Executors
Executors are the basic building block for execution in C++ and fulfil a similar role for execution such as allocators for the containers in C++. Functions such as async
, the parallel algorithms of the Standard Template Library, the then
continuation of futures, the run methods of task blocks, or the post
, dispatch
, or defer
calls of the Networking TS use them. Also, execution is a fundamental concern of programming there is no standardised way to perform an execution.
Here is the introductory example of the proposal P0761.
This parallel_for
function has a few issues.
- A simple...