To make my code more concise, can I do something like
int f(int const x, y, z), g(int const x, y, z);
to declare functions f and g which each take three int const arguments?
Edit:
Perhaps here is a better example:
int f(int const a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z);
How would that not be more concise and readable than putting int const before every letter?
Using Boost preprocessor, and considering you don’t care to describe the function arguments one by one (but isn’t that the point of your question), you can use the following trick :
But don’t forget that the whole idea of not taking the required time and space to describe function arguments is very dangerous.