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  阅读(148)  评论(0)    收藏  举报