Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 313 Bytes

13.25.md

File metadata and controls

3 lines (2 loc) · 313 Bytes

The copy constructor and the copy-assignment operator need to copy the underlying vector to a new vector rather than copy the shared pointer.

The pointer we use is smart pointer, and the memory of the vector is handled by the smart pointer, so that we don't need use destructor to release the memory by ourself.