Typedef ripple::make_invocable_t¶
Defined in File functional_traits.hpp
Typedef Documentation¶
-
template<typename
T>
usingripple::make_invocable_t= std::conditional_t<is_invocable_v<std::decay_t<T>>, T, Invocable<std::decay_t<T>>>¶ Returns the type T as Invocable<std::decay_t<T>> if T is not already invocable.
It returns a decayed version of T because the Invocable type always owns the callable.
- Template Parameters
T: The type to check and potentially make invocable.