Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::Invocable Concept Reference

Concept to check if T is invocable (i.e., can be called with no arguments and return void). More...

#include <Concepts.h>

Concept definition

template<typename T>
concept Raven::Invocable = requires(T t) {
{ t() } -> std::same_as<void>;
}
Concept to check if T is invocable (i.e., can be called with no arguments and return void).
Definition Concepts.h:74

Detailed Description

Concept to check if T is invocable (i.e., can be called with no arguments and return void).

This concept checks if the type T can be invoked (i.e., a function call operator is available) with no arguments and returns void.

Template Parameters
TThe type to check.