```std::map<std::string, int>::iterator it =...
# random
e
Copy code
std::map<std::string, int>::iterator it = names.find( name);
                    if( it != names.end())
                    {
                        std::ostringstream strStream;
                        strStream << ++it->second;
                        name.append( " " + strStream.str());
                    }