Lesson 21. Understanding Function Objects

Function objects or functors might sound exotic or intimidating, but they are entities of C++ that you have probably seen, if not also used, without having realized it. In this lesson, you learn

Image The concept of function objects

Image The usage of function objects as predicates

Image How unary and binary predicates are implemented using function objects

The Concept of Function Objects and Predicates

On a conceptual level, ...

Get Sams Teach Yourself C++ in One Hour a Day, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.