Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Templates/IsInvocable.h |
Include |
#include "Templates/IsInvocable.h" |
template<typename CallableType, typename... ArgTypes>
struct TIsInvocable : public UE4Private_IsInvocable::TIsInvocableImpl< void, CallableType, ArgTypes... >
Traits class which tests if an instance of CallableType can be invoked with a list of the arguments of the types provided.
Examples: IsInvocable<void()>::Value == true IsInvocable<void(), FString>::Value == false IsInvocable<void(FString), FString>::Value == true IsInvocable<void(FString), const TCHAR*>::Value == true IsInvocable<void(FString), int32>::Value == false IsInvocable<void(char, float, bool), int, int, int>::Value == true IsInvocable<TFunction<void(FString)>, FString>Value == true IsInvocable<TFunction<void(FString)>, int32>Value == false