Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
A copy constructor is the constructor called when an instance is copied.
A copy constructor is a constructor in which the first argument is a reference to an object that has the same type as the object to be initialized.
#include <cassert> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.