std::vector::clear()

Clear content

All the elements of the vector are dropped: their destructors are called, and then they are removed from the vector container, leaving the container with a size of 0.

posted @ 2011-02-17 11:35  justin_s  阅读(141)  评论(0编辑  收藏  举报