UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IsInvocable.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Templates/Invoke.h"
6
8{
9 template <typename T>
10 T&& DeclVal();
11
12 template <typename T>
13 struct TVoid
14 {
15 typedef void Type;
16 };
17
18 template <typename, typename CallableType, typename... ArgTypes>
20 {
21 enum { Value = false };
22 };
23
24 template <typename CallableType, typename... ArgTypes>
26 {
27 enum { Value = true };
28 };
29}
30
45template <typename CallableType, typename... ArgTypes>
46struct TIsInvocable : UE::Core::Private::IsInvocable::TIsInvocableImpl<void, CallableType, ArgTypes...>
47{
48};
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
Definition IsInvocable.h:8
Definition IsInvocable.h:47
Definition IsInvocable.h:14
void Type
Definition IsInvocable.h:15