[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/slacy/taskflow/master/examples/if_else.cpp [Back]  [Original]

// This program demonstrates how to create if-else control flow
// using condition tasks.
#include 

int main() {

  tf::Executor executor;
  tf::Taskflow taskflow;

  // create three static tasks and one condition task
  auto [init, cond, yes, no] = taskflow.emplace(
    [] () { },
    [] () { return 0; },
    [] () { std::cout 

Web Proxy Viewer  |  New URL  |  Original Page