CHAPTER 9
Lambda Expressions
This chapter is dedicated to lambda expressions that provide a capability similar to that of a function. In this chapter you will learn:
- What a lambda expression is and what you use it for
- How you define a lambda expression
- How you pass a lambda expression as an argument to a function
- What options you have for specifying a function parameter that accepts a lambda expression as an argument
- What a capture clause is and how you use it
- How you can define recursive lambda expressions
Introducing Lambda Expressions
A lambda expression has a lot in common with the functions you learned about in the previous chapter, which ...
Get Beginning C++ 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.