我写了一个iterator ++实现到达树的末尾:
// If we finished the stack and didn't fine any unvisited file, we're done
if( m_stack.empty() )
{
// Set the iterator to point to the end of the tree
m_pFile = NULL;
m_currentIndex = 0;
endFlag = true;
return *this;
}
}
如何使用此迭代器
为类实现end()函数感谢。