auto_ptr for arrays

后端 未结 4 1191
[愿得一人]
[愿得一人] 2020-12-09 15:03

In short, I am wondering if there is an auto_ptr like type for arrays. I know I could roll my own, I\'m just making sure that there isn\'t already something out there.

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 15:44

    boost scoped_array or you can use boost scoped_ptr with a custom deleter

提交回复
热议问题