Navigation
API > API/Runtime > API/Runtime/Core
A trait which tests if a type is trivially relocatable.
NOTE: In UE, all types are assumed to be trivially relocatable, so this defaults to true. The intent of this trait is for types to specialize it as false when it is known that they are not trivially relocatable, and for containers and other utility functions which use trivial relocation to to inspect this trait and guard against use with types which are known to be not trivially relocatable.
| Name | TIsTriviallyRelocatable |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Traits/IsTriviallyRelocatable.h |
| Include Path | #include "Traits/IsTriviallyRelocatable.h" |
Syntax
template<typename T>
struct TIsTriviallyRelocatable
Derived Classes
- TIsTriviallyRelocatable< const T >
- TIsTriviallyRelocatable< const volatile T >
- TIsTriviallyRelocatable< volatile T >
Struct Specializations
| Name | Remarks |
|---|---|
| TIsTriviallyRelocatable< const T > | |
| TIsTriviallyRelocatable< const volatile T > | |
| TIsTriviallyRelocatable< T > | Types derived from FGCObject are not trivially relocatable, so flag their use in containers and other contexts. |
| TIsTriviallyRelocatable< volatile T > |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Value | bool | Static inline constexpr bool Value = std::is_move_constructible_v |
Traits/IsTriviallyRelocatable.h |