예제 #1
0
Handle<T> & Handle<T>::operator = (const Handle<T> & other)
{
	++other.m_pUseCount;
	rem_ref();
	m_pPtr = other.m_pPtr;
	m_pUseCount = other.m_pUseCount;
	return *this;
}
예제 #2
0
inline Handle<T>& Handle<T>::operator=(const Handle &rhs)
{
	++*rhs.use;
	rem_ref();
	ptr = rhs.ptr;
	use = rhs.use;
	return *this;
}
예제 #3
0
	~Handle(void)
	{
		rem_ref();
	}