C++ Language/Indirection/SmartPointers/OwningAnArray

A smart pointer can own an array (e.g., ). When the time comes, it will use the correct destructor.

Additional information about smart pointers owning an array (includes interactive examples)