Skip to Content
Beginning C++
book

Beginning C++

by Ivor Horton
November 2014
Beginner content levelBeginner
632 pages
19h 31m
English
Apress
Content preview from Beginning C++

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

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning C++

Beginning C++

Brian Foster
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu

Publisher Resources

ISBN: 9781484200070Purchase book