| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/jwmneu/cpp-taskflow/master/example/emplace.cpp | [Back] [Original] |
// This example shows how to create task using either 'emplace'
// or 'silent_emplace'.
#include
#include
int main(){
tf::Taskflow tf;
// The method emplace gives you a future to retrieve the result.
// You may pass this future to another thread or program context
// to enable more asynchronous control flows.
auto [A, fuA] = tf.emplace([] () {
std::cout
| Web Proxy Viewer | New URL | Original Page |