# Modern C++ for C Programmers: Part 4

DevFeed: [Modern C++ for C Programmers: Part 4](<https://devfeed.tech/articles/modern-c-for-c-programmers-part-4-36325.md>)

Original publisher: [Read original article](<https://berthub.eu/articles/posts/cpp-4/>)

Published: 2018-07-12T11:07:40Z

Content type: tutorial

Language: en

Sources: [Bert Hubert's writings](<https://devfeed.tech/sources/bert-hubert-s-writings.md>)

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Polymorphism](<https://devfeed.tech/topics/polymorphism.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [function](<https://devfeed.tech/tags/function.md>), [modern](<https://devfeed.tech/tags/modern.md>), [programming](<https://devfeed.tech/tags/programming.md>)

## AI overview

Part 4 of a C++ tutorial for C programmers introduces lambdas and explains their syntax, captures, parameters, return types, object behavior, and use with containers and algorithms. It also discusses how lambdas can reduce code and may enable compiler optimization.

## Source excerpt

Welcome back! In part 3 I discussed classes, polymorphism, references and templates, and finally built a source indexer out of basic containers that achieves 60MB/s indexing speed. In this part we continue with further C++ features that you can use to spice up your code 'line by line', without immediately having to use all 1400 pages of 'The C++ Programming Language'. There is frequent reference to the indexing example from part 3 so you may want to make sure you know what that is about.