Why don't STL containers have virtual destructors?

后端 未结 9 2238
时光取名叫无心
时光取名叫无心 2020-11-28 07:54

Does anyone know why the STL containers don\'t have virtual destructors?

As far as I can tell, the only benefits are:

  • it reduces the size of an insta
9条回答
提交回复
热议问题