Initial commit

This commit is contained in:
Bassem Girgis
2018-12-20 17:34:07 -06:00
parent 7a2d899662
commit 81b4b9e273
34743 changed files with 5940233 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
template<class T> class SmartPtr {
public:
SmartPtr(T *realPtr = 0) { pointee = realPtr; }
T *operator->() const {
return pointee;
}
T &operator*() const {
return *pointee;
}
private:
T *pointee;
};