I have selection suite and from that I get UIDList of selected items. Now I would like to Iterate thru UIDList items and compare UID to another UID. But Iam not able to get single UID from UIDList mainly because of this error: Base operand of "->" has non-pointer type UIDList, therefor Iam not able to call GetUID method of UIDList. Could anyone gave me advice?
yes I know that, but the problem is in both situations.
First UIDList is list itself - when I use "." there is errow that UIDList Class has no menber GetUID() ...
Second UIDList is pointer - there I use -> because of pointer and error is Base operand of "->" has non-pointer type UIDList
or if aList is a parameter
void YourFunctionName(UIDList const &aList)
for (UIDList::const_iterator iter = aList.begin(); iter < aList.end(); ++iter)
//Do something with every UID in UIDList
// *iter - is the UID