561
edits
m (→Whitespaces) |
(→Whitespaces: clarify operator formatting (and some uppercase fixes)) |
||
Line 85: | Line 85: | ||
'''Template definitions''' | '''Template definitions''' | ||
No whitespace between template keyword and < | |||
<pre> | <pre> | ||
template<typename foo> | template<typename foo> | ||
Line 95: | Line 95: | ||
'''Operator overloading''' | '''Operator overloading''' | ||
Operator keyword is NOT seperated from the name, except for type conversion operators where it is required | |||
<pre> | <pre> | ||
bool operator | struct Foo { | ||
bool operator()() { | |||
// ... | |||
} | |||
operator bool() { | |||
return true; | |||
} | |||
} | } | ||
</pre> | </pre> |
edits