Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A shallow copy is a type of copy operation and the opposite of a deep copy.
Both types of copy operations work on a class, with a pointer to data member. When this class is copied, two things can happen:
The code below shows a shallow copy:
struct Huge |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.