just wondering if I have a map declared like this,
map<int, int> my_map;
and assign end()
iterator to a variable, and never change,
auto end_it = my_map.end()
Then later I will change my_map
by having many erase and insert of my_map
,
will the below always stays true during the life time of my_map
?
end_it == my_map.end()