Implemented map_iterator for use with std::map.