mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-01 04:20:39 +02:00
Now that we explained move semantics
This commit is contained in:
@@ -751,7 +751,8 @@ pt2 = nullptr; // Sets pt2 to null.
|
|||||||
|
|
||||||
|
|
||||||
// '=' != '=' != '='!
|
// '=' != '=' != '='!
|
||||||
// Calls Foo::Foo(const Foo&) or some variant copy constructor.
|
// Calls Foo::Foo(const Foo&) or some variant (see move semantics) copy
|
||||||
|
// constructor.
|
||||||
Foo f2;
|
Foo f2;
|
||||||
Foo f1 = f2;
|
Foo f1 = f2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user