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

  Рет қаралды 105,762

CodeBeauty

CodeBeauty

Күн бұрын

Пікірлер: 239
@CodeBeauty
@CodeBeauty 3 жыл бұрын
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ 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.
@coefficient1359
@coefficient1359 3 жыл бұрын
I have asked for this topic like 7 months back and now got it. Thank you.
@abelashenafi6291
@abelashenafi6291 Жыл бұрын
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
@sunghunet
@sunghunet 3 жыл бұрын
Today, I first learned lambda function of C++. I learned from the best. (Whitney's one of my favorite songs)!!
@SAURABHJAIN1989
@SAURABHJAIN1989 2 жыл бұрын
You are the best C++ Lecturer in KZbin. 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 :)
@luisfernando3405
@luisfernando3405 2 жыл бұрын
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. 🚀🚀
@j.r.waheed4610
@j.r.waheed4610 2 жыл бұрын
Thank you. Best C++ lambda introduction I have seen thus far.
@adhaarsharma753
@adhaarsharma753 2 жыл бұрын
Exactly what I was looking for. Best channel for C++
@phoebewell3653
@phoebewell3653 3 жыл бұрын
this video is so easy to understand, love it
@gollygobih6527
@gollygobih6527 3 жыл бұрын
Saldina you are the best as always ❤❤❤
@MartyAckerman310
@MartyAckerman310 Жыл бұрын
So pretty much just like Python lambdas, they're used as "throwaway" functions. Thanks for the practical example.
@l.p.1967
@l.p.1967 3 жыл бұрын
The best explanation, I need this video a lot, thank you CodeBeauty!!❤
@hilgicamala2520
@hilgicamala2520 3 жыл бұрын
You are so talented for teaching, the best teacher ever!
@awrmike
@awrmike 3 жыл бұрын
Perfect timing! We are covering Delegates and Lambdas this week in my C# course.
@bimblebom
@bimblebom Жыл бұрын
Never had a full grasp of lambdas until I watched this video! Thanks beautiful lady 🙂
@CodeBeauty
@CodeBeauty 8 ай бұрын
Happy to help! 🥰
@voseAKUMA
@voseAKUMA 2 жыл бұрын
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!
@meem71_2
@meem71_2 3 жыл бұрын
I finally understood that! Thanks!
@glee21012
@glee21012 3 жыл бұрын
The best explanation of Lammdas I have seen, not filled with computer science geek mumbo jumbo those guys love to spew.
@rupakdutta5577
@rupakdutta5577 2 жыл бұрын
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!
@crazylongjumper95
@crazylongjumper95 2 жыл бұрын
I have a biomedical engineering master degree, and I decided to learn C++ in the best possible way. Thank you so much for existing.
@milkamilkica1935
@milkamilkica1935 3 жыл бұрын
love your videos
@yairfink2368
@yairfink2368 3 жыл бұрын
I love the way you teach the lesson, and in general your lessos are very helpful. Thank you very much.
@DaleDix
@DaleDix 3 жыл бұрын
First time it's ever really made sense to me. Thanks!
@joebosah2727
@joebosah2727 3 жыл бұрын
Thank you so much
@irfanjames6551
@irfanjames6551 2 жыл бұрын
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. Disscussed in Cherno's video on lambdas kzbin.info/www/bejne/o4jKnnV4r5WsbsU
@emaayan
@emaayan Жыл бұрын
yea i should have gone to cherno to learn about lambdas, cause she defined only function pointers in signatures.
@ZeroCool2211
@ZeroCool2211 3 жыл бұрын
So useful and simple.. thank u Saldina 🌷
@tirushsanju2917
@tirushsanju2917 3 жыл бұрын
Nice job madam. Thank you so much.🤩🤩🤩❤️❤️❤️
@SivananthanChelliah
@SivananthanChelliah Жыл бұрын
not sure if someone mentioned this .. the code [](int x) { if (x % 2 ) == 0 ) .. else .. can be stored in a variable and then passed it to for_each function like this: auto func = [] (int x) { ... }; std::for_each(v.begin(), v.end(), func); to make it clean
@charltonmurphy7950
@charltonmurphy7950 2 жыл бұрын
This video is awesome! Thank you I have a better understanding now. I am a struggling student and your videos help out greatly
@sabinanurak9633
@sabinanurak9633 3 жыл бұрын
Very nice! 👍
@marym9003
@marym9003 2 жыл бұрын
These books are amazing, thanks for sharing free resources with us Saldina ❤️
@CodeBeauty
@CodeBeauty 2 жыл бұрын
Glad u like em 😃😃
@AdrianR.Calimag
@AdrianR.Calimag 9 ай бұрын
Thanks for this lesson. I really need to learn this for our management project. Great teaching as always❤
@CodeBeauty
@CodeBeauty 8 ай бұрын
You are so welcome 🥰
@raychou8719
@raychou8719 2 жыл бұрын
lambda confused me for almost 1 month and i always tried to not read thos code written by lambda untill i watched your video. Thanks so much.
@CodeBeauty
@CodeBeauty 2 жыл бұрын
I'm so happy that it helped you ☺️ 🤗
@yashgarg6871
@yashgarg6871 3 жыл бұрын
This is my first time visiting this channel and definitely learned something new, Thank you for the tutorial
@CodeBeauty
@CodeBeauty 3 жыл бұрын
you're welcome ☺️
@409_manohar6
@409_manohar6 3 жыл бұрын
Hi mam
@anga6275
@anga6275 3 жыл бұрын
thank you! :)
@sahilpawar3768
@sahilpawar3768 Жыл бұрын
You cleared my basics very well thank you ..!
@turmitexce
@turmitexce Ай бұрын
At last, clear and concise, thank you!
@alokranjan
@alokranjan 2 жыл бұрын
you explained lambdas so simply and beutifully
@ChrisVideosGreek
@ChrisVideosGreek 3 жыл бұрын
This book deserves more than a thank you! Really useful!!!
@CodeBeauty
@CodeBeauty 3 жыл бұрын
🤗💓💓
@NInJA_VEnOM_17
@NInJA_VEnOM_17 Жыл бұрын
​@@CodeBeauty❤❤❤❤❤❤❤❤
@BasicPoke
@BasicPoke 5 ай бұрын
Well-done explanation of lambdas. Thank you.
@naanpizza3881
@naanpizza3881 2 жыл бұрын
wow i never comment on videos but this simple explanation honestly blew my mind! thank you so much
@gowthamkumars365
@gowthamkumars365 3 ай бұрын
This video is worth of a million likes... Explained as easy as pealing a banana... Thanks CodeBeauty..
@iaroslavz2644
@iaroslavz2644 2 жыл бұрын
Thank you very much. It was very good explained.
@FJProject
@FJProject Жыл бұрын
7:02 - This kind of structures (classes) with overloaded operator() are called Functors.
@MegaAtlus
@MegaAtlus 3 жыл бұрын
Isn't it a coincidence? I just started using lambdas in C++. Thanks;)
@Farzadx-65
@Farzadx-65 Жыл бұрын
Thanks. Very nice and clear teaching. From Iran 💐
@shellongchow99
@shellongchow99 3 жыл бұрын
Great description!Thank you!
@whiteheart3190
@whiteheart3190 3 жыл бұрын
Thanks aloooooooooooot for explaination , quiet and concentrated I hope you go forward
@bomabeyoncebobmanuel9096
@bomabeyoncebobmanuel9096 2 жыл бұрын
Nicely explained. Thank you very much!🥰
@petkopopov2823
@petkopopov2823 2 жыл бұрын
exelent , learn match more then the course (expensive and to my lang) ! great thanks :)
@marswalker4512
@marswalker4512 Жыл бұрын
@CodeBeauty You're really a great teacher. Thank you so much for the classes. Really helpful. Please keep on making videos. God bless you!
@citoyennumero4434
@citoyennumero4434 3 жыл бұрын
Des explications claires et simples ! Je vous remercie beaucoup
@CodeBeauty
@CodeBeauty 3 жыл бұрын
de rien ☺️🥰
@B3rT286
@B3rT286 9 ай бұрын
Thank you for an amazing explanation
@CodeBeauty
@CodeBeauty 9 ай бұрын
🥰
@AM-ku9cw
@AM-ku9cw 3 жыл бұрын
thank you Saldina for the perfect explination
@CodeBeauty
@CodeBeauty 3 жыл бұрын
you're welcome 🤗🥰
@NInJA_VEnOM_17
@NInJA_VEnOM_17 Жыл бұрын
​@@CodeBeauty❤❤❤❤❤❤❤❤❤❤❤❤
@Frammqooh1234
@Frammqooh1234 3 жыл бұрын
GREAT video !! thank you again for another video !
@MaiNgocDoan1809
@MaiNgocDoan1809 3 жыл бұрын
Well I love to see more topics about morden c++ like that
@AkiaSamuel
@AkiaSamuel 6 күн бұрын
Code Beauty... Every thing here is indeed beautiful... Studying from NAHPI UBa Cameroon. ❤
@chifuyuu1690
@chifuyuu1690 3 жыл бұрын
3rd~!
@pyajudeme9245
@pyajudeme9245 3 ай бұрын
Best explanation ever!
@SilentReader99
@SilentReader99 3 жыл бұрын
Thankyou so much...😍Good explanation...It will be helpful for my presentation..😄 please do more videos..
@asishcodes
@asishcodes 3 жыл бұрын
Thanks for this awesome lecture!
@ousseynounabalma5092
@ousseynounabalma5092 4 ай бұрын
You remain the Best !!!!
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 3 жыл бұрын
It is the best lambda definition in C++ so far.
@ahmetcelik6686
@ahmetcelik6686 3 жыл бұрын
You are the best lady you should know that.
3 жыл бұрын
saldinaaaaaaaaaaaaaaaaaaa! you are a great teacher. absolutely you are the best!!!!! thanks a lot!!!!!!!
@purduetom90
@purduetom90 2 жыл бұрын
Your videos are great! Thank you!
@christiancarter255
@christiancarter255 2 жыл бұрын
I like your pronunciation of "parameter". :)
@rounakchakraborty5176
@rounakchakraborty5176 2 жыл бұрын
Good video. Learned a lot. Thank you❤.
@notmyopinion4981
@notmyopinion4981 3 жыл бұрын
Hi, I am trying to learn C++ and did watch your learn c++ in 10h FULL COURSE video for beginners and I would like to start with lambda expressions next, since I need it for an assignment for next week(yes I know, lucky me you uploaded this just today :D). You have a lot of videos about different topics regarding C++, stuff that wasn't in your 10h C++ video, so I was curious if I need to watch any other videos before learning about Lambda expressions. It would mean a lot if you could make a playlist which does include all your videos about C++ in the intended order from easiest(beginner) to difficult(advanced). That would mean so much for people like me who want to know it all!!! :)
@OzzFan1000
@OzzFan1000 3 жыл бұрын
Damn that's a handy tool to have! Looks like Lambda expressions can get pretty complex pretty quick though.
@janmajaykumar131
@janmajaykumar131 3 жыл бұрын
All of your videos are extremely important for the beginners like me. I learned a lot from these. Only one catch, beginners like me need a bit more practice problems and as well as a bit more theoretical explanation. Would you recommend some book on c++ which is very close to your lecture spirit or which you find suitable for learning cpp with practicing more? I will be grateful to you for your kind act.
@learntocode5464
@learntocode5464 2 жыл бұрын
Thanks, cool and simple explanation
@satyajeetkumarjha1482
@satyajeetkumarjha1482 3 жыл бұрын
Excellent stuff and you make things look easy.
@nvroshni1546
@nvroshni1546 2 жыл бұрын
Thank you! it was quite helpful!
@patrickmayer9218
@patrickmayer9218 Жыл бұрын
Just out of curiosity, what is the difference between the variables in the [ ] capture clause and the () parameters? And great job with the video, top notch stuff! :)
@zodiacdeggs1859
@zodiacdeggs1859 2 жыл бұрын
Thank you from Beirut
@KostopravHD
@KostopravHD 3 жыл бұрын
perfect tutor and perfect lesson. Thank you!
@newvocabulary
@newvocabulary 2 жыл бұрын
Good explanation, thanks.
@amortalbeing
@amortalbeing 2 жыл бұрын
Would it not be better to simply use std::getchar() instead of the windows specific "pause>nul" ?
@CodeBeauty
@CodeBeauty 2 жыл бұрын
or cin.get()
@CodeBeauty
@CodeBeauty 2 жыл бұрын
here is a video about that 😃 kzbin.info/www/bejne/jJSvfn97rJmmpJo
@amortalbeing
@amortalbeing 2 жыл бұрын
@@CodeBeauty yeah exactly. it baffles me as to why you went for pause, instead of all the standard options you have? was it all a setup for that single video? :))
@xf1469
@xf1469 Жыл бұрын
Very well explained
@arnaresh462
@arnaresh462 2 жыл бұрын
Dear mam u r brilliant
@truecodeface
@truecodeface 3 жыл бұрын
I am watching all the vides , thanks a lot about your programming productions, i would like to say that one of my important problem is still unsolved on your side. and that one is (MY REFUGEE REQUEST AND GETTING ME OUT OF AFGHANISTAN). again thanks a lot, your SUBSCRIBER Nasrullah Kuhzad from Afghanistan.
@TKcKoucher
@TKcKoucher Жыл бұрын
Excellent content!
@sreenadhpottipati9978
@sreenadhpottipati9978 Жыл бұрын
Great, thank you CodeBeauty
@juanandrade1615
@juanandrade1615 2 күн бұрын
Thank you very much for your lessons, you don't know how much I have learned from you, I admire you a lot and I would like to invite you to many coffees or invite you to the moon, I admire you for being a great teacher! ✨🤗💕
@chrischoir3594
@chrischoir3594 2 жыл бұрын
this is a great tutorial
@chandrashekharswain7593
@chandrashekharswain7593 Жыл бұрын
Thanks, Great Teaching..
@ABHISHEKSINGH-ib9ug
@ABHISHEKSINGH-ib9ug 2 жыл бұрын
Thank you for this very informative and beautiful video, CodeBeauty
@cavesalamander6308
@cavesalamander6308 Жыл бұрын
C++ Builder?! Hi, colleague! Шt's nice to unexpectedly meet such a rare specimen who is still working with the С++ Builder. But I still use CB2007 (C++99) due to a lot of strange things in many last versions... The very last release looks more acceptable so perhaps it's time to move forward... Thank you for video.
@remydepoorter6226
@remydepoorter6226 3 жыл бұрын
Hello from Belgium
@BHARATHKUMAR-gr9km
@BHARATHKUMAR-gr9km Жыл бұрын
osm explanation and detailed info. good job thank you
@hailemariameyayu9450
@hailemariameyayu9450 2 жыл бұрын
you are briliant thanks.
@ooagabonjoaga2680
@ooagabonjoaga2680 3 ай бұрын
13:00 thank you for a simple explanation about what capture clause is used for. so many people dont actually fucking explain that it does this. thx
@CodeBeauty
@CodeBeauty 3 ай бұрын
it's my pleasure to be better than others :D
@s4ifbn
@s4ifbn 3 жыл бұрын
thank you
@darkferiousity
@darkferiousity 2 жыл бұрын
Hi codebeuty love your videos thank you very much! Just a tip im not sure if it works in vscode, but in notepad++ you can highlight and hit cntrl+k to comment out all of that code. You can uncomment it by highlighing and cntrl+shift+k. Also you can overwrite a line by highlighting it and using paste directly on it with cntrl+v. If you want to select multiple lines with the cursor to tab several lines etc you can hold shift alt and left click down each line you want to have a multicursor really handy. :)
@Negijicoder
@Negijicoder 10 ай бұрын
Amazing..thx
@CodeBeauty
@CodeBeauty 8 ай бұрын
Thank you too!
@ameyjain3462
@ameyjain3462 2 жыл бұрын
If we use = then will it call copy constructor of values in scope? what if I pass all variables by & but as const references so that they cannot be changed and performace is also not affected, is it possible?
@nv9usb381
@nv9usb381 3 жыл бұрын
❤❤
@kavyahegde3586
@kavyahegde3586 6 ай бұрын
New subscriber for you ma'am Thank you
@CodeBeauty
@CodeBeauty 6 ай бұрын
Welcome 👋 🥰
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Lambdas in C++
11:54
The Cherno
Рет қаралды 352 М.
you will never ask about pointers again after watching this video
8:03
C++ OOP - What is inheritance in programming?
16:32
CodeBeauty
Рет қаралды 155 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 580 М.
C++ Weekly - Ep 332 - C++ Lambda vs std::function vs Function Pointer
16:30
C++ Weekly With Jason Turner
Рет қаралды 35 М.
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 863 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН