I was trying to understand helper functions in C++ from The C++ Programming Language by Bjarne Stroustrup
. But the book hasn\'t explained anything about it and the
There is a great definition of a helper function from the CppCoreGuidline:
A helper function is a function (usually supplied by the writer of a class) that does not need direct access to the representation of the class, yet is seen as part of the useful interface to the class. Placing them in the same namespace as the class makes their relationship to the class obvious and allows them to be found by argument dependent lookup.
For more info you can check the paragraph with a clear example, from which the upper quote is taken.