TIsInvocable

Traits class which tests if an instance of CallableType can be invoked with a list of the arguments of the types provided.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/IsInvocable.h

Include

#include "Templates/IsInvocable.h"

Syntax

template<typename CallableType, typename... ArgTypes>
struct TIsInvocable : public UE4Private_IsInvocable::TIsInvocableImpl< void, CallableType, ArgTypes... >

Remarks

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss