C++ style guide: Difference between revisions

Jump to navigation Jump to search
116 bytes added ,  20 December 2023
m
Line 25: Line 25:
The braces should not be indented, i.e., they align at the same indentation level as the keyword such as {{codeline|class}}.
The braces should not be indented, i.e., they align at the same indentation level as the keyword such as {{codeline|class}}.


The body of the block is indented.  
The body of the block is indented.
 
Note that class access specifiers {{codeline|public}}, {{codeline|private}}, {{codeline|private}} are not indented.


Example:
Example:
1,072

edits

Navigation menu