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

A callable type that returns a value convertible to the specified type. More...

#include <callable.h>

Concept definition

template<typename F, typename R, typename... Args>
std::convertible_to<std::invoke_result_t<F, Args...>, R>
A callable type that can be invoked with given arguments.
Definition callable.h:62
A callable type that returns a value convertible to the specified type.
Definition callable.h:96

Detailed Description

A callable type that returns a value convertible to the specified type.

Example usage:

template<ReturnsResult<int> F>
int compute(F&& func) {
return func();
}

Definition at line 96 of file callable.h.