11 #ifndef __UT_LOCKEDRAWPTR_H__
12 #define __UT_LOCKEDRAWPTR_H__
39 template <
typename T,
typename LOCKABLE>
49 , myLockScope(nullptr)
63 : myPtr(std::move(other.myPtr))
64 , myLockScope(std::move(other.myLockScope))
70 myPtr = std::move(other.myPtr);
71 myLockScope = std::move(other.myLockScope);
80 T *
get()
const {
return myPtr; }
92 #endif // __UT_LOCKEDRAWPTR_H__
UT_LockedRawPtr(T &ref, LOCKABLE &lock)
Construct a locked ptr instance.
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
UT_LockedRawPtr & operator=(UT_LockedRawPtr &&other)
UT_LockedRawPtr(UT_LockedRawPtr &&other)
LOCKABLE::Scope LockScopeT