Loading...
Searching...
No Matches
tf::RuntimeTask Concept Reference

determines if a callable is a runtime task More...

#include <taskflow/core/task.hpp>

Concept definition

template<typename C>
concept tf::RuntimeTask =
(std::invocable<C, tf::Runtime&> &&
std::same_as<std::invoke_result_t<C, tf::Runtime&>, void>) ||
(std::invocable<C, tf::NonpreemptiveRuntime&> &&
std::same_as<std::invoke_result_t<C, tf::NonpreemptiveRuntime&>, void>)
determines if a callable is a runtime task
Definition task.hpp:141

Detailed Description

determines if a callable is a runtime task

A runtime task is a callable object constructible from std::function<void(tf::Runtime&)> or std::function<void(tf::NonpreemptiveRuntime&)>.