TFunction

TFunction See the class definition for intended usage.

Inheritance Hierarchy

TFunctionRefBase

TFunction

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Syntax

Remarks

TFunction<FuncType>

See the class definition for intended usage.

Constructors

Name Description

Public function

TFunction

(
    TYPE_OF_NULLPTR
)

Default constructor.

Public function

TFunction

(
    FunctorType&& InFunc
)

Constructor which binds a TFunction to any function object.

Public function

TFunction

(
    TFunction&&
)

Public function

TFunction

(
    const TFunction& Other
)

Destructors

Name Description

Public function

~TFunction()

Functions

Name Description

Public function

void

 

Reset()

Removes any bound callable from the TFunction, restoring it to the default 'empty' state.

Operators

Name Description

Public function Const

FORCEINLINE

 

operator bool()

Tests if the TFunction is callable.

Public function Const

FORCEINLINEb...

 

operator!=

(
    TYPE_OF_NULLPTR
)

Nullptr inequality operator.

Public function

TFunction &

 

operator=

(
    TFunction&& Other
)

Move assignment operator.

Public function

TFunction &

 

operator=

(
    const TFunction& Other
)

Copy assignment operator.

Public function Const

FORCEINLINEb...

 

operator==

(
    TYPE_OF_NULLPTR
)

Nullptr equality operator.

Typedefs

Name

Description

Super

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