mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Now that we explained move semantics
This commit is contained in:
parent
a230d76307
commit
fc9ae44e48
@ -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 f1 = f2;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user