CppCon 2018: Jon Kalb “Copy Elision”
Вставка
- Опубліковано 17 лис 2018
- CppCon.org
-
Presentation Slides, PDFs, Source Code and other presenter materials are available at: github.com/CppCon/CppCon2018
-
Lightning Talk
-
Videos Filmed & Edited by Bash Films: www.BashFilms.com
*-----*
Register Now For CppCon 2022: cppcon.org/registration/
*-----*
Stuff like this is why taking time to learn x64 assembly is worth it IMO. Great talk
This is so underrated video for some reason. Great talk! Thanks!
Wow this makes a lot of sense. I'm definitely going to keep this trick in mind from now on. Thanks!
That's an excellent explanation! Thanks!
Awesome talk, crystal clear.
Great talk, thanks!
I love this guy.
what happens of if an exception is thrown after some write has occurred to the return value? and the assignment to the return value never occurs?
Then it's not RVO'd. Methods that return values that are modified through methods that have side-effects can't be optimized in-place by the compiler.
The function unwinds stack and calls destructor before it propagates the exception.