R.3: Fill in placeholder link (#2173)

* fill in placeholder link

* fixed a typo
pull/2194/head
1024 2 years ago committed by GitHub
parent 1b37b50162
commit 2a2581cc95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -9539,7 +9539,7 @@ Returning a (raw) pointer imposes a lifetime management uncertainty on the calle
delete p;
}
In addition to suffering from the problem from [leak](#???), this adds a spurious allocation and deallocation operation, and is needlessly verbose. If Gadget is cheap to move out of a function (i.e., is small or has an efficient move operation), just return it "by value" (see ["out" return values](#Rf-out)):
In addition to suffering from the problem of [leak](#Rp-leak), this adds a spurious allocation and deallocation operation, and is needlessly verbose. If Gadget is cheap to move out of a function (i.e., is small or has an efficient move operation), just return it "by value" (see ["out" return values](#Rf-out)):
Gadget make_gadget(int n)
{

Loading…
Cancel
Save