2025年12月03日(水) [長年日記]
■ [c++] C++で宣言に書く指定子の順序
C++の宣言に書く指定子の順序に言及した文書が https://github.com/cplusplus/draft のWikiにあったのでメモ。
- Specification Style Guidelines (github.com/cplusplus)
In a decl-specifier-seq, the decl-specifiers should be written in the following order:
- friend / typedef / storage-class-specifier / virtual
- inline
- constexpr
- explicit-specifier
- const
- volatile
- unsigned / signed
- short / long
- other type-specifiers
[ツッコミを入れる]