Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
The copy assignment operator is an operator used in assignment and one of The Big Four. It differs from a constructor, because the copy assignment operator might have to clean up the previous (to-be-overwritten) instance its resources.
There are multiple idioms for overloading a copy assignment operator:
struct MyClass |
#include <algorithm> |
Operating system(s) or programming environment(s)
Libraries used:
TEMPLATE = app |
|
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml