MemoryResource

[MemoryResource](API\Plugins\RigLogicLib\pma\MemoryResource) is an abstract class that allows the implementation of polymorphic allocators. @note It's purpose is to allow passing arbitrary allocators through API boundaries, without requiring changes in the signatures and types involved.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

RigLogicLib

Header

/Engine/Plugins/Animation/RigLogic/Source/RigLogicLib/Public/pma/MemoryResource.h

Include

#include "pma/MemoryResource.h"

Syntax

class MemoryResource

Remarks

MemoryResource is an abstract class that allows the implementation of polymorphic allocators. @note It's purpose is to allow passing arbitrary allocators through API boundaries, without requiring changes in the signatures and types involved.

Destructors

Name Description

Public function Virtual

~MemoryResource()

Functions

Name Description

Public function

void *

 

allocate

(
    std::size_t size,
    std::size_t alignment
)

Public function

void

 

deallocate

(
    void* ptr,
    std::size_t size,
    std::size_t alignment
)

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