how does the stl's multimap insert respect orderings?

后端 未结 7 2237
灰色年华
灰色年华 2020-12-03 21:15

I have some data which come with a integer index. I am continuous generating new data which needs to added to the collection of data I have, sorted by that index, at the sa

7条回答
  •  余生分开走
    2020-12-03 21:48

    No it won't. If you want that, you should use a "sequence container" like a vector. You can load a vector with std::pairs for example?

提交回复
热议问题