Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::Invocable Concept Referenceexport

A callable type that can be invoked with given arguments. More...

#include <callable.h>

Concept definition

template<typename F, typename... Args>
concept kcenon::common::concepts::Invocable = std::invocable<F, Args...>
A callable type that can be invoked with given arguments.
Definition callable.h:62

Detailed Description

A callable type that can be invoked with given arguments.

This concept wraps std::invocable for consistency within the kcenon::common::concepts namespace.

Example usage:

template<Invocable<int, int> F>
auto apply(F&& func, int a, int b) {
return func(a, b);
}

Definition at line 62 of file callable.h.