An interesting point. I didnβt even think about it.
I prefer to add frequently used functions at the top (utility functions, etc.), since they most likely need to be configured.
I donβt think organization is especially important since I can quickly find any function. I am not browsing my file to find a function; I am looking for him.
In C ++, I expect the functions in the .cpp file to be in the same order in which they are declared in the .h file. Usually these are constructors, followed by destructors, followed by basic / central functional functions, and then utility functions.
Brent P. Newhall
source share