Hi,
i have a list of Elemtents of a custom type:
std::list<CDataTransferElement*> m_list;
The class is defined like this:
class CDataTransferElement
{
public:
CDataTransferElement(void);
~CDataTransferElement(void);
CString Name;
double PercentValue;
double MOLValue;
int PhaseIndex;
};
I have x Items in the m_list Object, that have to be sorted by the PhaseIndex Variable in a new Object (what type of ever). In the end i need x lists of the CDataTransferElement Elements where each list has only Elements with the same PhaseIndex.
How do i do that at best?
regards camelord