How to watch an iterator

I have a std::map, std::list<int>, and std::list<myObject>

When I loop through them with their type iterators, how can I watch the values? For instance I call a function in the iterator loop:

for(std::list<int>::iterator channelIter = intList.begin()
channelIter != intList.end();
channelIter++)
{
// I want to be able to watch the value of the iterator in a watch window
myFunction((int)(*channelIter);
}

Also, how do I watch an list<myObject> and a map[int] ?
Okay, I was hasty. Simply add the iterator to the watch window and expand to std::_Tree -> _Ptr (I am using VS2003)

Also, I apologize. I forgot to use the code formatting on the post.
Thx,
Topic archived. No new replies allowed.