►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 how to do more counting with count and count_if. I'll show you a more pragmatic example where you might want to do something beyond counting an occurrence of some value. By supplying a predicate you can count properties of particular objects who have some property (e.g. in a game, how many enemies still have health left) for example.
►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