I have
vector<set<unsigned short>> theVector
vector<set<unsigned short>>::iterator vecIter
and
set<unsigned short> *theSetP
I use
theSetP = new set<unsigned short>()
to create various sets,
theVector.push_back(*theSetP)
to insert them into the vector,
and when I'm finished with one of them I use
theVector.erase(vecIter)
to delete it.
Does this completely delete the set and free its memory space, or should I be doing this differently?



LinkBack URL
About LinkBacks




Oops, sorry, I guess I wasn't quite awake yet.