Рет қаралды 38,005
Embrace the copy-free lifestyle!
― mCoding with James Murphy (mcoding.io)
Source code: github.com/mCo...
Cppref on copy elision: en.cppreferenc...
SUPPORT ME ⭐
---------------------------------------------------
Sign up on Patreon to get your donor role and early access to videos!
/ mcoding
Feeling generous but don't have a Patreon? Donate via PayPal! (No sign up needed.)
www.paypal.com...
Want to donate crypto? Check out the rest of my supported donations on my website!
mcoding.io/donate
Top patrons and donors: Jameson, Laura M, Dragos C, Vahnekie, Neel R, Matt R, Johan A, Casey G, John Martin, Mutual Information
BE ACTIVE IN MY COMMUNITY 😄
---------------------------------------------------
Discord: / discord
Github: github.com/mCo...
Reddit: / mcoding
Facebook: / james.mcoding
CHAPTERS
---------------------------------------------------
0:00 Intro
0:40 Return Value Optimization
3:06 Where do the copies come from?
5:23 When can copies be elided?
7:46 C++17 mandatory copy elision
9:38 Thanks