¡@

Home 

c++ Programming Glossary: it.m_cur

Dynamically allocated linked list in c++.What to do after exception to prevent memory leak?

http://stackoverflow.com/questions/5776206/dynamically-allocated-linked-list-in-c-what-to-do-after-exception-to-prevent-m

char operator bool operator Iterator it return m_cur it.m_cur m_prev it.m_prev LinkedList.cpp #include LinkedList.h LinkedList.. Iterator LinkedList erase LinkedList Iterator it if it.m_cur NULL Node tmp it.m_cur if it.m_prev NULL it.m_cur it.m_prev.. erase LinkedList Iterator it if it.m_cur NULL Node tmp it.m_cur if it.m_prev NULL it.m_cur it.m_prev m_next tmp m_next else..