UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Function.h File Reference
#include "CoreTypes.h"
#include "AutoRTFM.h"
#include "Concepts/NotCVRefTo.h"
#include "Misc/AssertionMacros.h"
#include "Misc/IntrusiveUnsetOptionalState.h"
#include "HAL/UnrealMemory.h"
#include "Templates/FunctionFwd.h"
#include "Templates/UnrealTypeTraits.h"
#include "Templates/Invoke.h"
#include "Templates/UnrealTemplate.h"
#include "Templates/Requires.h"
#include "Math/UnrealMathUtility.h"
#include <new>
#include <type_traits>

Go to the source code of this file.

Classes

struct  UE::Core::Private::Function::IFunction_OwnedObject
 
struct  UE::Core::Private::Function::TFunction_OwnedObject< T, bUnique, bOnHeap >
 
struct  UE::Core::Private::Function::FFunctionStorage
 
struct  UE::Core::Private::Function::TFunctionStorage< bUnique >
 
struct  UE::Core::Private::Function::TFunctionRefCaller< Functor, Ret, ParamTypes >
 
struct  UE::Core::Private::Function::TFunctionRefBase< StorageType, Ret(ParamTypes...)>
 
struct  UE::Core::Private::Function::FFunctionRefStoragePolicy
 
class  TFunctionRef< Ret(ParamTypes...)>
 
class  TFunction< Ret(ParamTypes...)>
 
class  TUniqueFunction< Ret(ParamTypes...)>
 

Namespaces

namespace  UE
 
namespace  UE::Core
 
namespace  UE::Core::Private
 implementation
 
namespace  UE::Core::Private::Function
 

Macros

#define TFUNCTION_USES_INLINE_STORAGE   0
 

Typedefs

template<typename FunctorType >
using UE::Core::Private::Function::TFuncPtrTypeIfPossible_T = decltype(ResolveFuncPtrTypeIfPossible(std::declval< FunctorType && >(), 0))
 

Functions

template<typename T >
FORCEINLINE bool UE::Core::Private::Function::IsBound (const T &Func)
 
template<typename FunctorType >
auto UE::Core::Private::Function::ResolveFuncPtrTypeIfPossible (FunctorType &&, int) -> decltype(+std::declval< FunctorType >())
 
template<typename FunctorType >
auto UE::Core::Private::Function::ResolveFuncPtrTypeIfPossible (FunctorType &&,...) -> FunctorType &&
 
template<typename FuncType >
FORCEINLINE bool operator== (TYPE_OF_NULLPTR, const TFunction< FuncType > &Func)
 
template<typename FuncType >
FORCEINLINE bool operator!= (TYPE_OF_NULLPTR, const TFunction< FuncType > &Func)
 

Macro Definition Documentation

◆ TFUNCTION_USES_INLINE_STORAGE

#define TFUNCTION_USES_INLINE_STORAGE   0

Function Documentation

◆ operator!=()

template<typename FuncType >
FORCEINLINE bool operator!= ( TYPE_OF_NULLPTR  ,
const TFunction< FuncType > &  Func 
)

Nullptr inequality operator.

◆ operator==()

template<typename FuncType >
FORCEINLINE bool operator== ( TYPE_OF_NULLPTR  ,
const TFunction< FuncType > &  Func 
)

Nullptr equality operator.