开发者

boost::smart_ptr and COW containers

开发者 https://www.devze.com 2023-04-11 11:02 出处:网络
I\'m using boost::scoped_array in a container that I want to make copy-on-write but I fear that scoped_array won\'t work. Which boost::smart_ptr conta开发者_运维技巧iner is closest to cow-safe scoped

I'm using boost::scoped_array in a container that I want to make copy-on-write but I fear that scoped_array won't work. Which boost::smart_ptr conta开发者_运维技巧iner is closest to cow-safe scoped array?


You could use boost::shared_array.

0

精彩评论

暂无评论...
验证码 换一张
取 消