Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/UScriptStruct
Description
Move-assign a struct over an existing struct. Uses C++ move assignment operator (operator=(T&&)) if the struct has opted in via WithMoveAssign trait. Falls back to CopyScriptStruct for types without the trait, or for POD types (where move == copy). Source is left in a valid but unspecified (moved-from) state after a successful move.
| Name | MoveAssignScriptStruct |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Class.h |
| Include Path | #include "UObject/Class.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/UObject/Class.cpp |
void MoveAssignScriptStruct
(
void * Dest,
void * Src,
int32 ArrayDim
) const
Parameters
| Name | Remarks |
|---|---|
| Dest | Pointer to initialized destination memory |
| Src | Pointer to source memory (will be moved from) |
| ArrayDim | Number of elements in the array |