When your in a situation where you need to return two things in a single method, what is the best approach?
I understand the philosophy that a method should do one t
Use std::vector, QList, or some managed library container to hold however many X you want to return:
QList getMultipleItems() { QList returnValue; for (int i = 0; i < countOfItems; ++i) { returnValue.push_back(); } return returnValue; }