FScopedAllowAbstractClassAllocation

Utility struct that allows abstract classes to be allocated for non-CDOs while in scope.

Windows
MacOS
Linux

Inheritance Hierarchy

FNoncopyable

FScopedAllowAbstractClassAllocation

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Syntax

struct FScopedAllowAbstractClassAllocation : public FNoncopyable

Remarks

Utility struct that allows abstract classes to be allocated for non-CDOs while in scope. Abstract objects are generally unsafe and should only be allocated in very unusual circumstances.

Constructors

Destructors

Functions

Name Description

Public function Static

bool

 

IsDisallowedAbstractClass

(
    const UClass* InClass,
    EObjectFlags InFlags
)

Constants

Name

Description

AllowAbstractCount

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