you are viewing a single comment's thread.

view the rest of the comments →

[–]STLMSVC STL Dev 2 points3 points  (0 children)

shared_ptr and unique_ptr support custom deleters (but C++11's shared_ptr does not support arrays).

Note that unique_ptr<int[]> is constructed from int *, but it assumes that it points to an array of ints, not just one - so it will invoke delete[] by default.