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
setname.clear();
Set only clears what it allocates itself. If you allocate something yourself, you'll have to clear it yourself.