MCRO
C++23 utilities for Unreal Engine.
|
A type wrapper around a default initializeable object which may not be copyable but which needs to be a member of a copyable class. On each instance of such class the wrapped value may not need to be copied and default constructing it is enough. Useful for mutexes for example. More...
#include <InitializeOnCopy.h>
Public Member Functions | |
TInitializeOnCopy () | |
TInitializeOnCopy (TInitializeOnCopy const &) | |
TInitializeOnCopy (TInitializeOnCopy &&) noexcept | |
auto | operator= (TInitializeOnCopy const &) -> TInitializeOnCopy & |
auto | operator= (TInitializeOnCopy &&other) noexcept -> TInitializeOnCopy & |
T * | operator-> () |
const T * | operator-> () const |
T & | Get () |
const T & | Get () const |
template<typename Self > | |
operator typename TCopyQualifiersFromTo< Self, T & >::Type (this Self &&self) | |
Data Fields | |
TUniqueObj< T > | Value |
A type wrapper around a default initializeable object which may not be copyable but which needs to be a member of a copyable class. On each instance of such class the wrapped value may not need to be copied and default constructing it is enough. Useful for mutexes for example.
Definition at line 29 of file InitializeOnCopy.h.
|
inline |
Definition at line 31 of file InitializeOnCopy.h.
|
inline |
Definition at line 32 of file InitializeOnCopy.h.
|
inlinenoexcept |
Definition at line 33 of file InitializeOnCopy.h.
|
inline |
Definition at line 42 of file InitializeOnCopy.h.
|
inline |
Definition at line 43 of file InitializeOnCopy.h.
|
inline |
Definition at line 46 of file InitializeOnCopy.h.
|
inline |
Definition at line 39 of file InitializeOnCopy.h.
|
inline |
Definition at line 40 of file InitializeOnCopy.h.
|
inlinenoexcept |
Definition at line 35 of file InitializeOnCopy.h.
|
inline |
Definition at line 34 of file InitializeOnCopy.h.
TUniqueObj<T> Mcro::InitializeOnCopy::TInitializeOnCopy< T >::Value |
Definition at line 37 of file InitializeOnCopy.h.