+ 1

what is this {<<} operator? and when should we use it?

1st Sep 2018, 1:20 PM
Mohamed Ali
Mohamed Ali - avatar
2 Answers
1st Sep 2018, 1:27 PM
Eduardo Petry
Eduardo Petry - avatar
+ 4
Its meaning and usage is contextual, if you use it as operator between 2 numbers for example, it plays a role of left shift operator. But if you use it between std::cout and something else for example, it plays a role of insertion operator.
1st Sep 2018, 1:40 PM
Ipang