O'Reilly logo

Beginning C++ by Ivor Horton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required