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.
There is nothing for this in the current std library. However, the future standard C++0x has an unique_ptr, which comes in replacement of auto_ptr, and which works with arrays.
A first implementation can be found here:
unique_ptr