Something done in misc
This commit is contained in:
parent
c0807442a4
commit
f0b766e37c
|
@ -274,6 +274,14 @@ namespace Utility
|
|||
{
|
||||
return &p == this->_ptr;
|
||||
}
|
||||
template<typename T> inline bool SmartPointer<T>::operator!= (const SmartPointer<T>& d)
|
||||
{
|
||||
return d._ptr != this->_ptr;
|
||||
}
|
||||
template<typename T> inline bool SmartPointer<T>::operator!= (const T& p)
|
||||
{
|
||||
return &p != this->_ptr;
|
||||
}
|
||||
template<typename T> inline T& SmartPointer<T>::operator* ()
|
||||
{
|
||||
return *this->_ptr;
|
||||
|
|
|
@ -212,6 +212,8 @@ namespace Utility
|
|||
SmartPointer<T>& operator= (T* p);
|
||||
bool operator== (const SmartPointer<T>& d);
|
||||
bool operator== (const T& p);
|
||||
bool operator!= (const SmartPointer<T>& d);
|
||||
bool operator!= (const T& p);
|
||||
T& operator* ();
|
||||
T* operator-> ();
|
||||
operator T* ();
|
||||
|
|
Loading…
Reference in New Issue