#What exactly does this do.

10 messages · Page 1 of 1 (latest)

granite sapphireBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

brisk hollow
#

it's an operator overload indeed

#

that of the left bitshift operator to be precise

#

like any operator, you can make it do whatever you want, but it's mostly used to work with streams

#

in this case << is called the stream insertion operator and is usually declared like so: std::ostream& operator<<(std::ostream& out, Class& value)

#

likewise, >> is called the stream extraction operator in that context

#

that's precisely how std::cout, std::cin work, as well as generally any stream class from the standard lib

jagged moss
#

for consistency

granite sapphireBOT
#

This question thread is being automatically marked as solved.