Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RefCountT_H
- #define RefCountT_H
- #include <iostream>
- #include <string>
- using namespace std;
- template <class T>
- class RefCountT {
- private:
- T *ptr;
- int count;
- public:
- RefCountT();
- ~RefCountT();
- RefCountT(RefCountT & r);
- void operator=(RefCountT & r);
- void inc();
- void dec();
- bool zeroCount();
- T getVal();
- void setVal( T val);
- };
- #endif
Add Comment
Please, Sign In to add comment