C ++ copy deep shallow copy

Shallow copy

Deep copy of the object to achieve

It is not a simple copy of the object, but the contents of the heap memory will be copied

 

Guess you like

Origin www.cnblogs.com/xjyxp/p/11238161.html