FUseSystemMallocForNew

Inherit from [FUseSystemMallocForNew](API\Runtime\Core\HAL\FUseSystemMallocForNew) if you want your objects to be placed in memory alloced by the system malloc routines, bypassing GMalloc.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/MemoryBase.h

Include

#include "HAL/MemoryBase.h"

Syntax

class FUseSystemMallocForNew

Remarks

Inherit from FUseSystemMallocForNew if you want your objects to be placed in memory alloced by the system malloc routines, bypassing GMalloc. This is e.g. used by FMalloc itself.

Operators

Name Description

Public function

void

 

operator delete

(
    void* Ptr
)

Overloaded delete operator using the system allocator

Public function

void

 

operator delete[]

(
    void* Ptr
)

Overloaded array delete operator using the system allocator

Public function

void *

 

operator new

(
    size_t Size
)

Overloaded new operator using the system allocator.

Public function

void *

 

operator new[]

(
    size_t Size
)

Overloaded array new operator using the system allocator.

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