Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Indirection/SmartPointers/OwningAnArray

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

A smart pointer can own an array (e.g., std::unique_ptr<int[]> piUnique(new int[32]);). When the time comes, it will use the correct destructor (delete[]). Additional information about smart pointers owning an array (includes interactive examples)