I found code here that looked something like this:
auto f(T& t, size_t n) -> decltype(t.reserve(n), void()) { .. }
In all the docume
Since it is an expression that comma is simply the comma operator (meaning the type is the type of the rhs side: void), not another argument.
void
That code is using SFINAE - it's enabled if t.reserve(n) exists but it wants to keep the return type as void.
t.reserve(n)