For some reason I need to store the iterators of a container and judge whether two iterators point to the same element. I found that whether two iterators point to the same element of a container can't be decided by "itr1 == itr2". The following code is a short demonstrate of that. Then, how can I make the decision properly? Thanks for any hints.