Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Templates
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Templates/MemoryOps.h |
| Include | #include "Templates/MemoryOps.h" |
template<typename DestinationElementType, typename SourceElementType, typename SizeType>
void RelocateConstructItem
(
void * Dest,
const SourceElementType * Source
)
Remarks
Relocates a single 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
| Name | Description |
|---|---|
| Dest | The memory location to relocate to. |
| Source | A pointer to the first item to relocate. |