Describe C++ Standard Library style

This commit is contained in:
Boris Rasin
2015-05-20 11:50:54 +03:00
parent 7e68f7ed00
commit 7f79f38462

View File

@@ -14,7 +14,11 @@ are common examples. snake_case has the advantage that it can also work with spe
* functions and variables start with lower case: `myMethod`
* constants are all capital: `const int PI=3.14159265358979323;`
*Note that the C++ standard does not follow any of these guidelines. Everything in the standard is lowercase only.*
C++ Standard Library (and other well known C++ libraries like boost) use these guidelines:
* Macro names use uppercase with underscores: INT_MAX
* Template parameter names use camel case: InputIterator
* All other names use snake case: unordered_map
## Distinguish Private Object Data