Vector and operator overloading

i cant understand why sir pass two arugment in
void operator <<(ostream &os, v){}
for
cout<<v;

like it should be like void operator <<( v){}
bcoz one will go as parameter other will be object…

hello @Diwyanshu
cout<<v; statement has two objects.
one is cout and v,
so while overloading << we need to pass these two objects .

read more about operator overloading from internet.