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

determines if a type owns or provides a graph More...

#include <taskflow/core/graph.hpp>

Concept definition

template<typename T>
concept tf::HasGraph = std::derived_from<T, Graph> ||
requires(T& t) {
{ t.graph() } -> std::convertible_to<Graph&>;
}
determines if a type owns or provides a graph
Definition graph.hpp:957

Detailed Description

determines if a type owns or provides a graph

A type satisfies tf::HasGraph if it either derives from tf::Graph or provides a graph() method returning a reference convertible to tf::Graph&.