for(um::const_iterator iter = Points.begin(); iter != Points.end(); ++iter)
cout << iter->second <<endl;
}
/***************end of the second code***********************/
I have two questions about it
1:which one is better?
I only give the key to the first code but without hash_value, would collision happen?
if it really happen, how would unordered_map handle it?
2:how could I obtain the data of p1, p2 or p3 of the second code?
I had tried to write some member function and wrote something like
"iter->first.getX()", but it wouldn't work totally
how could I fix this problem?