Declarations are now written |type| identifier;, generally. Functions are similar |void| func() {}, etc. Special declarations still work, etc
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
|
||||
template<T> T greater(T a, T b) {
|
||||
template<T> |T| greater(|T| a, |T| b) {
|
||||
if (a > b)
|
||||
return a;
|
||||
return b;
|
||||
}
|
||||
|
||||
template<T> T lesser(T a, T b) {
|
||||
template<T> |T| lesser(|T| a, |T| b) {
|
||||
if (a > b)
|
||||
return b;
|
||||
return a;
|
||||
|
||||
Reference in New Issue
Block a user