Help with Policy based Data Structure — ordered_set

Revision en2, by BinaryCrazy, 2020-04-21 00:16:47

Hi all,

I hope you are having a great day.

I was solving this problem, which is quite simple with the policy based Data Structure Ordered Set.

However, I wanted to create a Ordered Multiset, but I couldn't get it to work, as I could not erase from the resulting data structure.

Can someone please help me by giving me the code for the ordered_multiset which supports insertion,deletion, order_by_key, and size?

Thanks,

-BC

Tags policy based, cp, ordered_set

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English BinaryCrazy 2020-04-21 05:17:42 43 Tiny change: '()`.\n\n\n\n\n' -> '()`.\n\n\nFinally, my solution: [submission:77420177]\n\n'
en3 English BinaryCrazy 2020-04-21 05:16:53 923 Tiny change: 'multiset` 'om' since its' -> 'multiset` `om` since its'
en2 English BinaryCrazy 2020-04-21 00:16:47 22
en1 English BinaryCrazy 2020-04-21 00:16:16 595 Initial revision (published)