Erasing from vector by swapping to the end

后端 未结 0 450
花落未央
花落未央 2021-01-26 05:59

I am wondering why there is no STL function that deletes an element from a vector by swapping it to the end and then removing it. Is there a better data structure than std

相关标签:
回答
  • 消灭零回复
提交回复
热议问题