If the list is populated, clear it. Note will not delete objects if the list is of pointers rather than real objects and will therefore be a memory leak.

Return TypeFunction nameArguments
hzList<OBJ>&hzList::operator=(hzList<OBJ>&,)

Declared and defined in file: hzTmplList.h

Function Logic:

0:START 1:unknown 2:Return *this 3:unknown 4:unknown 5:items 6:items 7:mx 8:unknown 9:items 10:Return *this

Function body:

hzList<OBJ>& hzList::operator= (hzList<OBJ>& op)
   {
       if (mx && mx == op.mx)
           return *this ;
       if (mx)
       {
           //  If the list is populated, clear it. Note will not delete objects if the list is of pointers rather than real objects and
           //  will therefore be a memory leak.
           if (mx->m_nCopy)
               mx->m_nCopy-- ;
           else
               mx->Clear() ;
       }
       mx = op.mx ;
       if (mx)
           mx->m_nCopy++ ;
       return *this ;
   }