MENU

Fun & Interesting

Introduction to std::move in C++ | Modern Cpp Series Ep. 32

Mike Shah 17,537 3 years ago
Video Not Working? Fix It Now

►Full C++ Series Playlist: https://www.youtube.com/playlist?list=PLvv0ScY6vfd8j-tlhYVPYgiIyXduu6m-L ►Find full courses on: https://courses.mshah.io/ ►Join as Member to Support the channel: https://www.youtube.com/channel/UCA64pZbN5Mz5NxC3SO4qpDg/join ►Lesson Description: In this lesson I am going to talk to introduce std::move and the idea of move semantics. Move semantics allows us in modern C++ to transfer ownership (i.e. steal a resource) from one object to another. This allows us to avoid copies when we truly want to transfer a resource. The implications of this, is that we can potentially increase performance, when we want to transfer ownership, and then avoid unnecessary copies. ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel!

Comment