I am new to C ++, background in Java and Python, the layouts of the source code in this language are pretty standard. However, I noticed that with C ++ projects, there are at least 3 different layout types:
Option 1 All files (.hpp and .cpp) in the same directory
|
Option 2 Headers (.h.pp) all in one include directory and implementations (.cpp) in src directory
|
|
|
|
Option 3 Headers (.h.pp) all in one include directory with specific directories for different groups of headers (details, impl), all implementations (.cpp) in one directory
|
|
|
|
| |
|
|
|
Option 4 is similar to 3, but implementations also have their down directories.
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
I quickly read the standard and can not find any suggestions or recommendations on this issue, the same applies to cppref documentation.
? : " "