Open alexey-malov opened 5 years ago
CMyStack<T>& operator=(CMyStack&& stack)
{
if (this != &stack)
{
this->m_pTop = stack.m_pTop;
}
return *this;
}
CMyStack<T>& operator=(CMyStack&& stack)
{
if (this != &stack)
{
Clear();
m_top = stack.m_top;
stack = nullptr;
}
return *this;
}