Is there a sorted_vector class, which supports insert() etc.?

后端 未结 6 875
情话喂你
情话喂你 2020-12-24 04:34

Often, it is more efficient to use a sorted std::vector instead of a std::set. Does anyone know a library class sorted_vector, which b

6条回答
  •  孤城傲影
    2020-12-24 05:15

    Alexandresu's Loki has a sorted vector implementation, if you dont want to go through the relativley insignicant effort of rolling you own.

    http://loki-lib.sourceforge.net/html/a00025.html

提交回复
热议问题