Partial class template specialization with maps
问题 I'm a new C++ programmer, I learned Java and ANSI C a time ago and decided to give it a shot. Well, I love C++, but I didn't like how the iterators work: In java, you could make a whole container private and implement a getter function to it's iterator, and the iterator has a method hasNext() that returns a boolean depending on if it has reached the end of the container. The only way I found to do something similar on C++ is writing 2 getters, iteratorBegin() and iteratorEnd() , that returned