|
|
|
@ -46,9 +46,20 @@ public:
|
|
|
|
|
NL_FORCE_INLINE bool operator==(const T *p) const { return (m == p) || (m && p && *m == *p); }
|
|
|
|
|
NL_FORCE_INLINE bool operator!=(const T *p) const { return !(*this == p); }
|
|
|
|
|
|
|
|
|
|
NL_FORCE_INLINE bool operator==(const T &p) const { return (m == &p) || (m && *m == p); }
|
|
|
|
|
NL_FORCE_INLINE bool operator!=(const T &p) const { return !(*this == p); }
|
|
|
|
|
|
|
|
|
|
NL_FORCE_INLINE bool operator==(long int p) const { return (*this == (const T *)(ptrdiff_t)p); } //< == NULL
|
|
|
|
|
NL_FORCE_INLINE bool operator!=(long int p) const { return (*this != (const T *)(ptrdiff_t)p); } //< != NULL
|
|
|
|
|
|
|
|
|
|
NL_FORCE_INLINE bool operator==(int p) const { return (*this == (const T *)(ptrdiff_t)p); } //< == 0
|
|
|
|
|
NL_FORCE_INLINE bool operator!=(int p) const { return (*this != (const T *)(ptrdiff_t)p); } //< != 0
|
|
|
|
|
|
|
|
|
|
#ifdef NL_CPP14
|
|
|
|
|
NL_FORCE_INLINE bool operator==(nullptr_t p) const { return (*this == (const T *)(ptrdiff_t)p); } //< == nullptr
|
|
|
|
|
NL_FORCE_INLINE bool operator!=(nullptr_t p) const { return (*this != (const T *)(ptrdiff_t)p); } //< != nullptr
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
NL_FORCE_INLINE T &operator*() { return *m; }
|
|
|
|
|
NL_FORCE_INLINE const T &operator*() const { return *m; }
|
|
|
|
|
NL_FORCE_INLINE T *operator->() { return m; }
|
|
|
|
|