RelocateConstructItems

Relocates a range of items to a new memory location as a new type.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/MemoryOps.h

Include

#include "Templates/MemoryOps.h"

Syntax

template<typename DestinationElementType, typename SourceElementType, typename SizeType>
void RelocateConstructItems
(
    void * Dest,
    const SourceElementType * Source,
    SizeType Count
)

Remarks

Relocates a range of items to a new memory location as a new type. This is a so-called 'destructive move' for which there is no single operation in C++ but which can be implemented very efficiently in general.

Parameters

Parameter

Description

Dest

The memory location to relocate to.

Source

A pointer to the first item to relocate.

Count

The number of elements to relocate.

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