Hi,
it is possible to check and transform an iterator to another type? doesn't seem so, but I wanted to be 100% sure.
In my case, I have a vector with objects and I'd like to transform the iterator to one of that object.
For instance:
CSQLGroups::VSQLGROUPS vGroups;
fillGroups(vGroups);
for(itGr = vGroups.begin(); itGr != vGroups.end(); itGr++)
{
if anotherVector.contains(itGr) //But it's an iterator, it's different.
{}
}
CSQLGroups::VSQLGROUPS vGroups;
fillGroups(vGroups);
for(itGr = vGroups.begin(); itGr != vGroups.end(); itGr++)
{
QString name = itGt.sname;
QString surname = itGt.ssurname;
if anotherVector.contains(itGr) //But it's an iterator, it's different.
{}
}
To copy to clipboard, switch view to plain text mode
thanks!
Bookmarks