Lambda expressions in modern C++ (in depth step by step tutorial)

preview_player
Показать описание
A lambda is an unnamed function that is used for short snippets of code that cannot be reused and are not worth naming.
It makes the code cleaner, easier to read, and lambdas are also fast to execute.
Lambdas are available in C++ version 11 and above.
In this step by step in depth tutorial I'll teach you the most important things about lambda expressions, and also share some tips and tricks, and if you want to practice and see more examples of lambda expressions in modern C++, download free E-Book below.

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️

Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

I use it to enhance the performance, features, and support for C, C#, and C++ development in Visual Studio.
It is a powerful, secure text editor designed specifically for programmers.

However, please don't feel obligated to do so. I appreciate every one of you, and I will continue to share valuable content with you regardless of whether you choose to support me in this way. Thank you for being part of the Code Beauty community! ❤️😇

Contents:
00:00 - What will you learn in this course?
00:48 - Introduction to lambda expressions
02:40 - Create and set up the project and console application
03:44 - Basics of lambda expressions
06:52 - What kind of problems are solved with lambdas?
08:27 - Your first lambda
10:03 - Why use lambdas?
12:44 - Why are lambdas more powerful than ordinary functions? (Lambda captures)

Follow me on other platforms:
Рекомендации по теме
Комментарии
Автор

📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.

CodeBeauty
Автор

I have asked for this topic like 7 months back and now got it. Thank you.

coefficient
Автор

The beauty about your videos is, I always watch them to learn something I initially intended to but, I always end up learning some extra things. Thanks for that. You're awesome

abelashenafi
Автор

You are the best C++ Lecturer in YouTube. You explain the topic with the example, including all other special features of C++. Like in this "lambda function" example, you also included 'Standard Template Library' vector and algorithm. That really connects with the real coding problems and uses of all other important features of C++.

Thank you for teaching us, all these things :)
Thanks a lot :)

SAURABHJAIN
Автор

Perfect timing! We are covering Delegates and Lambdas this week in my C# course.

awrmike
Автор

this video is so easy to understand, love it

phoebewell
Автор

Im learning c++ on udemy and I always come to your videos for second help. you always have a great way if explaining these concepts . Thank you for posting these videos. for real!

voseAKUMA
Автор

I love the way you teach the lesson, and in general your lessos are very helpful. Thank you very much.

yairfink
Автор

Today, I first learned lambda function of C++.
I learned from the best. (Whitney's one of my favorite songs)!!

sunghunet
Автор

The best explanation, I need this video a lot, thank you CodeBeauty!!❤

l.p.
Автор

I was struggling with this topic since yesterday.. it's all clear to me now! Glad I came across your video..Thank you CodeBeauty, Keep making such videos!

rupakdutta
Автор

Saldina you are the best as always ❤❤❤

gollygobih
Автор

You are so talented for teaching, the best teacher ever!

hilgicamala
Автор

Hi, I'm from Brazil and a developer beginner but with much years at development using C++; Your channel is my favorite font to learning c++ and english; This is terrific. 🚀🚀

luisfernando
Автор

Thank you. Best C++ lambda introduction I have seen thus far.

j.r.waheed
Автор

First time it's ever really made sense to me. Thanks!

DaleDix
Автор

So useful and simple.. thank u Saldina 🌷

ZeroCool
Автор

This video is awesome! Thank you I have a better understanding now. I am a struggling student and your videos help out greatly

charltonmurphy
Автор

Exactly what I was looking for. Best channel for C++

adhaarsharma
Автор

15:51 You can change the value (only in lambda function) by typing "mutable" between the circle and curly brackets.
This way you don't have to change the variable in bigger scope by passing with reference.

irfanjames