Difference between using std::vector and include<vector>

#include <vector> is a must when you use vector.

using std::vector; is optional as this saves you from typing std:: when declaring a vector for example.

vector<int> v;         // no need  prefix std::

Leave a Comment