#include <string>
#include <map>
#include <iostream>
 
int main()
{
    std::map<int, std::string>  map;
    auto itfirst = map.insert(map.begin(), std::make_pair(1000, "test"));
    auto* pf = &itfirst->second;
    auto it = map.begin();
    for (int i = 0; i < 10000; ++i) {
        it = map.insert(it, std::make_pair(i, "t"));
    }
    std::cout << *pf << std::endl;
}
