Navigation
API > API/Runtime > API/Runtime/uLangCore
Description
MoveIfPossible will cast a reference to an rvalue reference. This is UE's equivalent of std::move. It doesn't static assert like Move, because it is useful in templates or macros where it's not obvious what the argument is, but you want to take advantage of move semantics where you can but not stop compilation.
| Name | uLang::MoveIfPossible |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Templates/References.h |
| Include Path | #include "uLang/Common/Templates/References.h" |
namespace uLang
{
template<typename T>
ULANG_FORCEINLINETRemoveReference < T >::Type && uLang::MoveIfPossible
(
T && Obj
)
}