1//Syntax
2vectorname.clear()
3vectorname.erase(startingposition, endingposition)
4
5clear() removes all the elements from a vector container, thus making its
6size 0. All the elements of the vector are removed using clear() function.
7
8erase() function, on the other hand, is used to remove specific elements from
9the container or a range of elements from the container, thus reducing its
10size by the number of elements removed.
11