I got a set that includes pointers to an allocated memory, I am using the clear method forexample : setname.clear();
and the set itself is getting cleared and his p
Clear() only removes the pointers not the object it points to. You'll have either to iterate on each object before removing it to delete it, or use something like std::tr1::shared_ptr (also in Boost).