《Google C++ 编程风格指南》对于头文件的包含顺序
C system files.
C++ system files.
Other libraries' .h files.
Your project's .h files.
The preferred ordering reduces hiddendependencies. We want every header file to be compilable on its own. Theeasiest way to achieve this is to make sure that every one of them is the first.h file
为了加强可读性和避免隐含依赖,应使用下面的顺序:C标准库、C++标准库、其它库的头文件、你自己工程的头文件
《Google C++ 编程风格指南》对于头文件的包含顺序
最新推荐文章于 2024-03-22 11:41:34 发布