I seem to recall some sort of mechanism that someone coded in C++ to prevent discarding the return value of a function. But I can't remember what it was, or quite for certain if I'm remembering it ...
This very issue is one of my pet peeves of working in Java/C, because extract-function refactoring is severely inhibited by having only 1 return value, and it forces you to pass in mutable values ...
Like magic, tuples make the impossible possible. Yep, we're talking here about one little corner in the Standard Template Library that will make it simple to return multiple values from a single ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results