listex.hpp
来自「一个完整的编辑器的代码(很值得参考」· HPP 代码 · 共 30 行
HPP
30 行
#ifndef __LISTEX_HPP__INCLUDED__
#define __LISTEX_HPP__INCLUDED__
#ifdef INLINE
#undef INLINE
#endif
#define INLINE
////////////////////////////////////////////////////////////////////////////////
template <class TYPE, class ARG_TYPE >INLINE void
CListEx < TYPE, ARG_TYPE >::
DestroyAll ()
{
if (!IsEmpty () && m_bDelete)
{
POSITION pPosition = GetHeadPosition ();
do
delete GetNext (pPosition);
while (pPosition);
RemoveAll ();
}
}
////////////////////////////////////////////////////////////////////////////////
#endif // __LISTEX_HPP__INCLUDED__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?