aboutsummaryrefslogtreecommitdiff
path: root/src/sptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sptr.h')
-rw-r--r--src/sptr.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sptr.h b/src/sptr.h
index 75851a6..bccf887 100644
--- a/src/sptr.h
+++ b/src/sptr.h
@@ -139,6 +139,26 @@ namespace Bu
139 { 139 {
140 return pData == src; 140 return pData == src;
141 } 141 }
142
143 /**
144 * Not equals comparison operator.
145 *@param src (const SPtr<T> &) The SPtr to compare to.
146 *@returns (bool) Are the equal?
147 */
148 bool operator!=( const SPtr<T> &src ) const
149 {
150 return !(pData == src.pData);
151 }
152
153 /**
154 * Not equals comparison operator.
155 *@param src (const T *) The pointer to compare to.
156 *@returns (bool) Are the equal?
157 */
158 bool operator!=( const T *src ) const
159 {
160 return !(pData == src);
161 }
142 162
143 /** 163 /**
144 * Boolean cast operator. Do we have a pointer? 164 * Boolean cast operator. Do we have a pointer?