This is the overload of << operator.
std::ostream& operator << (std::ostream out, std::vector& vec) { for (int i = 0; i &