| Taskflow: A General-purpose Task-parallel Programming System

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

concept to check if a type is a tf::AsyncTask More...

`#include <taskflow/core/async_task.hpp>`

## Concept definition

template<typename T>
concept tf::AsyncTaskHandleLike = std::is_same_v<std::decay_t<T>, AsyncTask>
tf::AsyncTaskHandleLike
concept to check if a type is a tf::AsyncTask
Definition async_task.hpp:314

## Detailed Description

concept to check if a type is a tf::AsyncTask

Satisfied by `tf::AsyncTask` and any cv- or reference-qualified form of `tf::AsyncTask`.

static_assert(AsyncTaskHandleLike<AsyncTask>);
static_assert(AsyncTaskHandleLike<const AsyncTask&>);
static_assert(!AsyncTaskHandleLike<int>);