Lambdas in C++

preview_player
Показать описание


Thank you to the following Patreon supporters:
- Dominic Pace
- Kevin Gregory Agwaze
- Sébastien Bervoets
- Tobias Humig
- Peter Siegmund
- Kerem Demirer

Gear I use:
-----------------

Рекомендации по теме
Комментарии
Автор

I don't know why, but that sofa and the tree swaying in the backyard, bright sunny day, it just all feels awesome and nostalgic..

satyamraj
Автор

So glad you are still doing this mane! Keep up the good work! Document everything you know about C++ its so great to have this playlist at my disposal :-) Thanks as always!

ToxicityGameDev
Автор

I can’t thank you more. This had puzzled me for more than 6 months. I just felt so relieved and rejuvenated today. Thanks Cherno.

chetannaik
Автор

The best cpp video tutorials I've ever seen, thank you!

dsedchenko
Автор

The thing that used to confuse me the most about lamdas was that I didn't understand why there was such a thing as a capture bracket for passing arguments when lambdas also provide the standard way of passing arguments just like ordinary functions do.

Then I read somewhere that by using the capture bracket, the variables in the surrounding scope get treated as if they were member variables of the object created by using the lambda. I think this ties in to example you made in the video - when you tried to pass the lambda as an argument to a function that accepted a function pointer as a parameter, it only worked as long as capture bracket wasn't being used. It only passed the functionality defined by the lambda. However, if you want to pass the entire object that gets created by the lambda, together with the variables captured in the brackets, you need to pass it as a function object instead, not just a function pointer. So, in conclusion - arguments passed as parameters get treated just like they would if you were passing them to any function. Variables captured by the brackets become a part of the lambda object.

fishyperil
Автор

THANK YOU SO MUCH for this video!! You made everything clear

jinyoungpark
Автор

Wow, this video in combination with the previous one about function pointers was an enlightenment to me! 😄🙏👏 Thank you!

Kazetomosuki
Автор

This is super awesome. And thank you for inadvertently showing me how to put in a breakpoint in my IDE. Never knew I could do that. :)

vegansynths
Автор

Dude your channel is awesome! Your videos are super informative and useful. Keep up the good work :)

GeekyMino
Автор

Thanks for the clarity of video! Especially for the second part that includes the functional thing!

dimasveliz
Автор

Thank you so much.. I was not clear abot Lambas ever after reading so much.. You made it look so simple.

svddwd
Автор

Thanks for this, the learncpp section on this nearly cooked my headmeat.

jinshiro
Автор

7:00

"Sure thing now it's not gonna work. we need to convert it and add blah blah one billion obvious other things... aand... here we go!"
.___. how you do this man

YoutubeFrogOfHell
Автор

honestly a great series for programmer who have past exp, did whole thing (till lambdas)in like 3-4 hrs and understood almost everything .

Rahulsingh-theraha
Автор

finally clearing up a topic I tried to avoid as it confused and overwhelmed me when I first saw it.. thanks!

rcookie
Автор

You should make a video on C++ iterators, dude.

EezySeven
Автор

Damn this guy is so good, must feel pretty good knowing that if you interviewed anywhere you can get the job.

shat
Автор

2:24 This is almost the exact case I was wanting to use this for, funny enough

austinbryan
Автор

You really know what you're doing. You're so good. Do you have a video about ECS?

mangrubengaming
Автор

One can never have too many function pointer, functor, and lambda videos.

vertigo