I have a vector of vector of my object and I get a pointer of this vector. My problem is I can’t create an iterator with that.
This my code :
vector<vector<AbstractBlock*>> *vectorMap = _level->getMap()->getVectorMap();
for(vector<AbstractBlock*>::iterator i = vectorMap[colonneX-1].begin(); i < vectorMap[colonneX-1].end(); i++)
{
/*some operations*/
}
It failed on vectorMap[colonneX-1].begin(), if the vectorMap is not a pointer I can do this
How I can make this?
Thanks!
Dereference
vectorMap: