Summary
Programmers have been using a number of techniques to simulate multiple return types from functions and methods in C++ since the introduction of C++11.
1
2
These techniques include using pointers, references, and tuples to return multiple values from a single function.
1
Additionally, C++17 introduced structured bindings, which allow for the decomposition of a tuple into individual variables.
1
According to