Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
Loading...
Searching...
No Matches
aria::InvocableR Concept Reference

Anything that can be invoked with Args... and returns convertible-to-Ret. More...

#include <concepts.hpp>

Concept definition

template<typename F, typename Ret, typename... Args>
concept InvocableR = std::invocable<F, Args...>
&& std::convertible_to<std::invoke_result_t<F, Args...>, Ret>
Anything that can be invoked with Args... and returns convertible-to-Ret.
Definition concepts.hpp:38

Detailed Description

Anything that can be invoked with Args... and returns convertible-to-Ret.

Convenience over std::invocable + invoke_result.