Changes

Jump to navigation Jump to search

Code Formatting Conventions

372 bytes added, 00:47, 4 May 2008
→‎Whitespaces: added rules for template definiton and operator overloading
</pre>
'''array delete operator has no whitespace before []'''
<pre>
delete[] foo;
</pre>
 
'''Template definitions'''
 
no whitespace between template and <
<pre>
template<typename foo>
void myFunc(foo arg) {
// ...
}
</pre>
 
'''Operator overloading'''
 
no whitespace between operator name and opening parentheses on definition (like with normal function/method definitions)
<pre>
bool operator==(const MyType &l, const MyType &r) {
// ...
}
</pre>
561

edits

Navigation menu