For usage information, it’s nicer to put into the header. That’s where people would look first.
The documentation is really successful if no one has to examine your .cpp file to figure out how the component should be used.
For usage information, it’s nicer to put into the header. That’s where people would look first.
The documentation is really successful if no one has to examine your .cpp file to figure out how the component should be used.