Блог пользователя deepkamal

Автор deepkamal, история, 6 лет назад, По-английски

I am implementing an ordered multiset but I am not able to erase elements from it . https://ideone.com/pnx4R3 From above code, after erasing the number of elements shown are same as without erasing .

  • Проголосовать: нравится
  • +3
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +4 Проголосовать: не нравится

You should instead use an ordered set of pairs, such that the second value differentiate the keys. To erase, you can do something like this: https://pastebin.com/qtqHJxne