阅读背景:

从STL std::队列删除而不破坏被删除的对象?

来源:互联网 

All the documentation I can find on the STL containers (both queue and list) say that for any of the remove functions the removed object's destructor is called. This means that I can't use std::queue any time I want a queue that's simply a list of objects needing some operation performed on them.All the documentation I can find on the STL con




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: