Navigation
API > API/Runtime > API/Runtime/Core
This traits class is intended to be used in pairs to allow efficient and correct move-aware overloads for generic types. For example:
template
template
Structuring things in this way will handle T being a pass-by-value type (e.g. ints, floats, other 'small' types) which should never have a reference overload.
| Name | TMoveSupportTraits |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Templates/UnrealTypeTraits.h |
| Include Path | #include "Templates/UnrealTypeTraits.h" |
Syntax
template<typename T>
struct TMoveSupportTraits : public TMoveSupportTraitsBase< T, TCallTraits< T >::ParamType >
Inheritance Hierarchy
- TMoveSupportTraitsBase → TMoveSupportTraits