Comment Comment by bobmoretti The std::tie function can also solve this problem in most situations, if you are stuck with C++ 11. parent bobmoretti 11 years ago