there is

multimap<pair<wstring, wstring>, wstring>. 

It is impossible to add an element like this:

 elementsList.emplace((stream.str(), file), elementPath); 

It should be?

    1 answer 1

    Well, at least, you can:

     elementsList.emplace(make_pair(stream.str(),file),elementPath); 

    Since there is no emplace for a pair , hardly anything better can be done ...

    • Thanks, I'll try. - Sergey
    • Поскольку для pair нет emplace - what do you mean by that? - αλεχολυτ
    • Well, I thought that if there was a member function emplace or its equivalent for pair , one would hope that the emplace for multimap would call it for the specified arguments? Or could it be called directly to place it instead of creating an object? - Harry