Template Function ripple::make_invocable¶
Defined in File invocable.hpp
Function Documentation¶
-
template<typename
Functor
>
decltype(auto)ripple
::
make_invocable
(Functor &&functor) noexcept¶ Creates an invocable object with the given functor.
This function decays the functor type, because in order to be able to use the invocable on both the host and the device, and across threads on the host, it needs to be able to be moved easily as well as to not be a reference to memory in the wrong address space (i.e reference to host memory when on the device).
- Return
A newly created invocable.
- Parameters
functor
: The functor which can be invoked.
- Template Parameters
Functor
: The type of the functor.