Lines Matching defs:callable
28 /// This class does not own the callable, so it is not in general safe to
33 Ret (*callback)(intptr_t callable, Params... params) = nullptr;
34 intptr_t callable;
37 LIBC_INLINE static Ret callback_fn(intptr_t callable, Params... params) {
38 return (*reinterpret_cast<Callable *>(callable))(
49 Callable &&callable,
53 // Functor must be callable and return a suitable type.
59 callable(reinterpret_cast<intptr_t>(&callable)) {}
62 return callback(callable, cpp::forward<Params>(params)...);