Hope this question is on topic.
I did a code review and came across the following function:
bool SomeFunc(std::string& o_xxx, char& o_yyy);
This function is used to extract the xxx and yyy values โโof a certain class using the out parameters.
Comments (which are later used for automatic documentation) say:
... this function returns by reference [xxx] and [yyy] ...
Obviously, the function returns a boolean indicating success or failure. Therefore, the above sentence needs to be rephrased. But how? What is the correct term (if any) for returning something, as it were, using the output parameter or, in other words, filling in the argument passed by the link?
The question is related to the agnostic of the language, since it is not C ++ specific. But he also noted C ++, because the example is in C ++.
Armen Tsirunyan
source share