mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03: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:
@@ -21626,7 +21626,8 @@ ISO Standard, use lower case only and digits, separate words with underscores:
|
|||||||
* `vector`
|
* `vector`
|
||||||
* `my_map`
|
* `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
|
##### Example
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user