Does C++11 have wrappers for dynamically-allocated arrays like Boost's scoped_array?

后端 未结 2 501
耶瑟儿~
耶瑟儿~ 2020-12-13 01:05

I often need to deal with dynamically-allocated arrays in C++, and hence rely on Boost for scoped_array, shared_array, and the like. After reading through Stroustrup\'s C++1

2条回答
  •  没有蜡笔的小新
    2020-12-13 01:27

    So far as vectors are intended as array wrappers, what if you use any suitable smart pointer with the vector as inner object?

提交回复
热议问题