Back to Browse

C++ STL algorithm - std::copy_if and std::copy_n | Modern Cpp Series Ep. 150

1.2K views
Sep 23, 2023
12:28

►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 show you copy_if and copy_n which are two new forms since C++11 in the algorithms library. These algorithms document more clearly the intent of the code, and are otherwise useful in copying a subset of data or a subset of data-based on a predicate (note copy itself can be supplied a predicate as well, but copy_n is more explicit in how many elements as a maximum to copy). ►YouTube Channel: https://www.youtube.com/c/MikeShah ►Please like and subscribe to help the channel! ►Join our free community: https://courses.mshah.io/communities/Q29tbXVuaXR5LTI3MzAz

Download

1 formats

Video Formats

360pmp427.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

C++ STL algorithm - std::copy_if and std::copy_n | Modern Cpp Series Ep. 150 | NatokHD