TMemStackAllocator::ForElementType::MoveToEmpty

Moves the state of another allocator into this one.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/MemStack.h

Include

#include "Misc/MemStack.h"

Syntax

void MoveToEmpty
(
    ForElementType & Other
)

Remarks

Moves the state of another allocator into this one. Assumes that the allocator is currently empty, i.e. memory may be allocated but any existing elements have already been destructed (if necessary).

Parameters

Parameter

Description

Other

The allocator to move the state from. This allocator should be left in a valid empty state.

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