C ++ does not require the return type to be an object reference ostream. However, if you are trying to do something like:
cout << instance_of_custom_type << 3 << "hi" << endl;
:
ostream &operator << (ostream &os, custom_type &t);
, - , - :
BigInt operator << (const BigInt &i, unsigned int shift);
, << . 1 << 8 256, . ++ ( ) ostream, "" . , , - , , , : , ++ << - .