foreach(const QString& s, myList)
C++ (Qt)for( QString string : string_list)
C++ (Qt)for( const auto &string : qAsConst(string_list))
C++ (Qt)std::unordered_map< Key, Value > container;...for ( std::unordered_map< Key, Value >::iterator iter iter = container.begin(); iter != container.end(); ++iter ){ ...}
C++ (Qt)typedef std::unordered_map< Key, Value > Container;Container container;...typedef Container::iterator Iterator;for ( Iterator iter = container.begin(); iter != container.end(); ++iter ){ ...}
C++ (Qt)using Container = std::unordered_map< Key, Value >;Container container;...for ( auto & pair : container ){ ...}
C++ (Qt)for (auto s: somestringlist)