C++ style guide: Difference between revisions

87 bytes added ,  1 September 2021
m
New recommendation for ordering
m (Formatting changes only)
m (New recommendation for ordering)
Line 100: Line 100:


Within a class, the different access blocks should appear in the order 1) {{codeline|public}}, 2) {{codeline|protected}}, 3) {{codeline|private}}.
Within a class, the different access blocks should appear in the order 1) {{codeline|public}}, 2) {{codeline|protected}}, 3) {{codeline|private}}.
Within an access block, member functions should be specified before member variables.


=== Namespace ===
=== Namespace ===
1,072

edits