I have a function:
std::tuple<int, int> func(int x) {
int a = x + 1;
int b = x + 2;
return { a, b };
}
and call it as:
auto [a, b] = func(3);
Now I only need b
. How can I suppress or ignore the output of a
? Similar to MATLAB [~, b] = func(3)
.