https://stackoverflow.com/questions/13061979/shared-ptr-to-an-array-should-it-be-used
Does this mean that I use shared_ptr to manage dynamic array directly just like unique_ptr with C++11? shared_ptr<int[]> p1(new int[10]);
1.No need to supply a custom deleter any more.
2.Can access array elements using [] operator.
Does this mean that I use shared_ptr to manage dynamic array directly just like unique_ptr with C++11? shared_ptr<int[]> p1(new int[10]);
1.No need to supply a custom deleter any more.
2.Can access array elements using [] operator.