how to free memory from a set

后端 未结 3 1767
庸人自扰
庸人自扰 2021-01-24 16:46

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

3条回答
  •  無奈伤痛
    2021-01-24 17:29

    Set only clears what it allocates itself. If you allocate something yourself, you'll have to clear it yourself.

提交回复
热议问题