Swapping vector to free it

前端 未结 0 1643
盖世英雄少女心
盖世英雄少女心 2020-11-28 17:09

I\'ve read that the best way to free the memory of a vector is:

vector().swap(my_vector);

And i don\'t really understand what is h

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