mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
NL.8: elaborate on reserved identifiers (#2131)
* NL.8: elaborate on reserved identifiers * Update CppCoreGuidelines.md * Update CppCoreGuidelines.md * Update CppCoreGuidelines.md --------- Co-authored-by: Herb Sutter <herb.sutter@gmail.com>
This commit is contained in:
parent
6d96d8e09d
commit
9b9eeccf3a
|
@ -21626,7 +21626,8 @@ ISO Standard, use lower case only and digits, separate words with underscores:
|
|||
* `vector`
|
||||
* `my_map`
|
||||
|
||||
Avoid double underscores `__`.
|
||||
Avoid identifier names that contain double underscores `__` or that start with an underscore followed by a capital letter (e.g., `_Throws`).
|
||||
Such identifiers are reserved for the C++ implementation.
|
||||
|
||||
##### Example
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user