Different ways to iterate over C++ Vector
A vector is a data structure for maintaining a set of elements having a specific data type.
Here, we’ll learn about various ways to iterate over a C++ Vector. (Some of the following ways could also be used with other C++ containers like list, queue, map etc.)