if you have an iterator, what would this do
i looked at the STL doc, but its not very clearPHP Code:return iterator->second
thanks
Printable View
if you have an iterator, what would this do
i looked at the STL doc, but its not very clearPHP Code:return iterator->second
thanks
it returns the second element(probably in a pair) dereferenced value, and iterator is a type trait used for traversing containers, and thus also has overloaded a dereferencing mechanism like pointers do.