P
puzzlecracker
Guys, what is more preferable, given that I don't have access to boost
or shared pointers:
std::map<T*, std::set<T2*> * > *_myMap;
vs.
std::map<T*, std::set<T2*> > *myMap;
Notice that in the latter, containing set is not a pointer. Could
there be a drawbacks with the former, like copying over when trying to
insert elements into it?
Thanks
or shared pointers:
std::map<T*, std::set<T2*> * > *_myMap;
vs.
std::map<T*, std::set<T2*> > *myMap;
Notice that in the latter, containing set is not a pointer. Could
there be a drawbacks with the former, like copying over when trying to
insert elements into it?
Thanks