Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TMoveSupportTraits< T > Struct Template Reference

#include <UnrealTypeTraits.h>

+ Inheritance diagram for TMoveSupportTraits< T >:
+ Collaboration diagram for TMoveSupportTraits< T >:

Additional Inherited Members

- Public Types inherited from TMoveSupportTraitsBase< T, TCallTraits< T >::ParamType >
typedef TCallTraits< T >::ParamType Copy
 

Detailed Description

template<typename T>
struct TMoveSupportTraits< T >

This traits class is intended to be used in pairs to allow efficient and correct move-aware overloads for generic types. For example:

template <typename T> void Func(typename TMoveSupportTraits<T>::Copy Obj) { // Copy Obj here }

template <typename T> void Func(typename TMoveSupportTraits<T>::Move Obj) { // Move from Obj here as if it was passed as T&& }

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.

Definition at line 398 of file UnrealTypeTraits.h.


The documentation for this struct was generated from the following file: