With your cursor inside of a class/struct,
Generate Stream Output Operator can be found in the
Generate Stream Output Operator command generates a friend
operator<< that outputs to a
std::ostream. You will be prompted to select base classes and member variables to output. You will also be prompted for where to place the definition of this function (either ‘Inline’, ‘Current File’, or ‘Source File’).
Additionally, if the file does not already include
iostream directly, then
#include <ostream> will be added to the file.