I have some code that uses an iterator to loop through all elements of an unordered_map, but within that loop there are several other processes where I store iterators to particular elements in the map, and generally do lots of jumping around but not iterating (excluding the outermost iterator).
It seemed to me that it may be more suitable to use a unordered_map::const_reference
to an element if I am not actually iterating. Is this true? The only thing preventing me from using const_references is that from my quick google searches they seems very unused by the populace, or at least little discussed.