Skip to content

Commit 7f79f38

Browse files
committed
Describe C++ Standard Library style
1 parent 7e68f7e commit 7f79f38

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

03-Style.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ are common examples. snake_case has the advantage that it can also work with spe
1414
* functions and variables start with lower case: `myMethod`
1515
* constants are all capital: `const int PI=3.14159265358979323;`
1616

17-
*Note that the C++ standard does not follow any of these guidelines. Everything in the standard is lowercase only.*
17+
C++ Standard Library (and other well known C++ libraries like boost) use these guidelines:
18+
19+
* Macro names use uppercase with underscores: INT_MAX
20+
* Template parameter names use camel case: InputIterator
21+
* All other names use snake case: unordered_map
1822

1923
## Distinguish Private Object Data
2024

0 commit comments

Comments
 (0)