Something done in misc

This commit is contained in:
dean11 2013-12-02 14:43:57 +01:00
parent c0807442a4
commit f0b766e37c
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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* ();