diff options
Diffstat (limited to 'src/sptr.h')
-rw-r--r-- | src/sptr.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -64,6 +64,16 @@ public: | |||
64 | return pData == src.pData; | 64 | return pData == src.pData; |
65 | } | 65 | } |
66 | 66 | ||
67 | operator bool() | ||
68 | { | ||
69 | return pRefCnt != NULL; | ||
70 | } | ||
71 | |||
72 | bool isSet() | ||
73 | { | ||
74 | return pRefCnt != NULL; | ||
75 | } | ||
76 | |||
67 | private: | 77 | private: |
68 | void decCount() | 78 | void decCount() |
69 | { | 79 | { |