2 ms·
> Is the compiler smart enough to turn moving/returning > into passing a pointer behind the scenes? Rust guarantees RVO, yes, and this is even baked into it
by kibwen 11y ago
> Is the compiler smart enough to turn moving/returning
> into passing a pointer behind the scenes?
Rust guarantees RVO, yes, and this is even baked into its calling convention.