Subtracting map iterators

前端 未结 2 1542
南方客
南方客 2020-12-07 03:16

I have a program where I have two std::map iterators say left and right respectively. I want to find the number of elements in the ran

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-07 03:55

    you can use policy based data structure which is compiler specific. More details can be found on this codeforces post The same can be used for set as well.

提交回复
热议问题