Closed jakcron closed 5 years ago
Test program for SharedPtr updated with more comprehensive tests. All of the code that uses SharedPtr has been update.
Added in v0.2:
T& operator*()
T* get()
void isNull()
void release()
Changed from v0.1:
T* operator*()
T* operator->()
Test program for SharedPtr updated with more comprehensive tests. All of the code that uses SharedPtr has been update.
Added in v0.2:
T& operator*()
Deference managed pointerT* get()
Direct access to managed pointervoid isNull()
Check if managed pointer is nullvoid release()
Manually free managed pointer (only frees pointer if this is the last instance)Changed from v0.1:
T* operator*()
replaced withT* operator->()