async = /* unspecified */,
deferred = /* unspecified */,
/* implementation-defined */
std::launch
is a BitmaskType. It specifies the launch policy for a task executed by the std::async function.
The following constants denoting individual bits are defined by the standard library:
Enumerator Meaningasync
the task is executed on a different thread, potentially by creating and launching it first deferred
the task is executed on the calling thread the first time its result is requested (lazy evaluation)
In addition, implementations are allowed to:
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior LWG 2102 C++11std::launch
was an implementation-defined type it is not implementation-defined [edit] See also runs a function asynchronously (potentially in a new thread) and returns a std::future that will hold the result
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