6#include "Templates/Invoke.h"
36template <
typename FunctionType>
39template <
typename ReturnType,
typename...
ArgTypes>
46 template <
typename LambdaType>
49 std::is_invocable_r_v<ReturnType, std::decay_t<LambdaType>,
ArgTypes...>
56 template <
typename LambdaType>
59 std::is_invocable_r_v<ReturnType, std::decay_t<LambdaType>,
ArgTypes...>
61 Function = &Call<std::decay_t<LambdaType>>;
79 inline explicit operator bool()
const
101 template <
typename LambdaType>
102 static ReturnType Call(
void* Lambda,
ArgTypes... Args)
AUTORTFM_INFER UE_FORCEINLINE_HINT constexpr auto Invoke(FuncType &&Func, ArgTypes &&... Args) -> decltype(((FuncType &&) Func)((ArgTypes &&) Args...))
Definition Invoke.h:44
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
ReturnType(void *, ArgTypes...) FunctionType
Definition FunctionWithContext.h:43
FunctionType * GetFunction() const
Definition FunctionWithContext.h:90
ReturnType operator()(ArgTypes... Args) const
Definition FunctionWithContext.h:85
TFunctionWithContext & operator=(LambdaType &&Lambda UE_LIFETIMEBOUND)
Definition FunctionWithContext.h:57
void * GetContext() const
Definition FunctionWithContext.h:95
constexpr TFunctionWithContext(decltype(nullptr))
Definition FunctionWithContext.h:74
TFunctionWithContext(FunctionType *InFunction, void *InContext)
Definition FunctionWithContext.h:67
TFunctionWithContext(LambdaType &&Lambda UE_LIFETIMEBOUND)
Definition FunctionWithContext.h:47
Definition FunctionWithContext.h:37
Definition AdvancedWidgetsModule.cpp:13