[+] AU_OPERATOR_COPY
[+] AU_OPERATOR_MOVE [+] AU_OPERATOR_COPY_MOVE
This commit is contained in:
parent
779e884caf
commit
3085ddc97b
@ -19,6 +19,10 @@
|
||||
#define AU_NO_MOVE(type) inline type(type&&) = delete;
|
||||
#define AU_NO_COPY_NO_MOVE(type) AU_NO_COPY(type) AU_NO_MOVE(type)
|
||||
|
||||
#define AU_OPERATOR_COPY(type) inline type &operator =(const type ©) { AuResetMember(*this, copy); return *this; }
|
||||
#define AU_OPERATOR_MOVE(type) inline type &operator =(type &&move) { AuResetMember(*this, AuMove(move)); return *this; }
|
||||
#define AU_OPERATOR_COPY_MOVE(type) AU_OPERATOR_COPY(type) AU_OPERATOR_MOVE(type)
|
||||
|
||||
#if !defined(AU_SHARED_FROM_THIS)
|
||||
#define AU_SHARED_FROM_THIS (AuStaticPointerCast<AuRemovePointer_t<decltype(this)>>(this->SharedFromThis()))
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user