Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to empty a std vector

vectorname.clear()
Parameters :
No parameters are passed.
Result :
All the elements of the vector are
removed ( or destroyed )
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #empty #std #vector
ADD COMMENT
Topic
Name
2+9 =