- βͺ = uninitialized memory
- π΅ = value 1
- π’ = value 2
name | operator | note | |
---|---|---|---|
βͺ β π΅ | construction | A() |
constructor may require parameters constructor may have multiple overloads |
π΅ β βͺ | destruction | ~A() |
|
π΅ βͺ β π΅ π΅ | copy construction | A(const A& a) |
|
π΅ π’ β π΅ π΅ | copy assignment | A& operator=(const A& a) |
|
π΅ βͺ β βͺ π΅ | move construction | A(A&& a) |
destructor on old value will also be called |
π΅ π’ β βͺ π΅ | move assignment | A& operator=(A&& a) |
destructor on old value will also be called |