Adds a command/code-action Generate Stream Output Operator, accessible through the Refactor... menu within a class or struct. Generates a friend operator<< that outputs to an ostream. Prompts the user to select base classes and member variables to output to the ostream. Works very similar to Generate Equality Operators.
Additionally, if ostream or iostream is not directly included in the file, then #include <ostream> will be added to the file.
Adds a command/code-action
Generate Stream Output Operator
, accessible through theRefactor...
menu within a class or struct. Generates a friendoperator<<
that outputs to anostream
. Prompts the user to select base classes and member variables to output to theostream
. Works very similar toGenerate Equality Operators
.Additionally, if
ostream
oriostream
is not directly included in the file, then#include <ostream>
will be added to the file.