Add and test dereference operators
This commit is contained in:
1 parent
9dfb6e4740
commit
be2da870bb
2 files changed
+35
-8
No files matched your search
@@ -90,6 +90,11 @@ public:
|
||||
return ptr;
|
||||
}
|
||||
|
||||
T & operator*() const
|
||||
{
|
||||
return *ptr;
|
||||
}
|
||||
|
||||
bool operator!() const
|
||||
{
|
||||
return !ptr;
|
||||
|
||||
Reference in new issue
Block a user