First question: is it possible to \"force\" a const_iterator using auto? For example:
const_iterator
map usa
A clean solution is to work with a const reference to the otherwise modifiable map:
const auto &const_usa = usa; auto city_it = const_usa.find("New York");
This will make sure you can't modify const_usa, and will use const iterators.
const_usa