C++ Tutorial: Lambda Functions

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 29

  • @nicolasrausch868
    @nicolasrausch868 15 дней назад

    best lambda explanation I have seen so far.
    thank you professor hank

  • @travelermruvihs809
    @travelermruvihs809 4 месяца назад +1

    Thank you so much. It really helpful

  • @klaus-udokloppstedt6257
    @klaus-udokloppstedt6257 5 месяцев назад

    6:02 I would not introduce lamdas showing an '[ ] { }' example. and I would not call it the basic version, as it is a specialized version of the general form of a lamda, when it does not use/needs any arguments.
    I would show the general form of a lambda '[ ] ( ) { }' with its capture, the argument list and the function body. this also has the advantage to literally see, that a lamda is an unnamed function. a function has the form of 'function_name (argument-list) { function_body }', but the lambda has no function_name and is preceded by the capture, thus having the form '[ capture-list ] (argument-list) { function_body }'. recognizing such analogies helps to understand (at least for me), that lamdas are just anonymous functions (with some specialities).

  • @AbhishekKumar-zv1kn
    @AbhishekKumar-zv1kn 8 месяцев назад

    very clear explanation, appreciate sharing video with us 😀

  • @IsaacCode95
    @IsaacCode95 Год назад

    great videos ! subscribed buddy, very informative videos about c++11

  • @Duke250_traveller
    @Duke250_traveller 6 месяцев назад

    Thank you so much for the video, its very clear.

  • @jamesonbourne4635
    @jamesonbourne4635 4 месяца назад

    Very good video 👍

  • @NoFormalities-y1k
    @NoFormalities-y1k Год назад

    Cool Stuff 👍, Thanks for Sharing

  • @赛尼木
    @赛尼木 11 месяцев назад

    i like your explanantion, Professor

  • @saurabhtalele1537
    @saurabhtalele1537 3 года назад +1

    nice sir,people say's that c++ to fast so why haven't someone haven't done project on RUclips like html+cpp+css+ javascript so one can see how fast is that....

    • @ProfessorHankStalica
      @ProfessorHankStalica  3 года назад

      Not sure, but looking at your bit here:
      html+cpp+css+javascript
      what comes to mind for me is...
      "one of these things is not like the other things..."

  • @mouduge
    @mouduge 2 года назад

    Nice series on C++ 11, thanks. Just one constructive criticism regarding this video: it took 5 minutes to get into the code, which seems way too long. Otherwise, very clear and informative. 👍

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 года назад

      Thanks for the comment and I agree with you about the time thing. When I update this video, I will definitely cut down on the intro part.

  • @akshatadollin4549
    @akshatadollin4549 5 месяцев назад

    Why only auto keyword used

  • @tomsmith8493
    @tomsmith8493 2 года назад

    Why would C++ tutorials come with political statements?

    • @Evan-fh2zg
      @Evan-fh2zg 8 месяцев назад

      So you just think it would be totally okay to let a bunch of racist, unvaccinated programs loose in the wild?

  • @cicartaya
    @cicartaya Год назад

    The way this guy sighs in his videos makes me believe that he really dislikes doing all this. He's good at teaching, but his lack of any kind of enthusiasm shows and hurts the learning process IMO. You don't have to be overly cheerful, just not so dejected.

    • @SaywhateverI
      @SaywhateverI Год назад

      I think it's rather calming. Gets the info across and be done. I can get why he is bored since this is basically learning the ABC stuff for him lol.

  • @blackimp4987
    @blackimp4987 9 месяцев назад

    I think it would be more complete if you showed the real type of lambda function, rather than using auto declaration, so that it's clear in case it's needed - as it would be for a pointer to a class function -

    • @ProfessorHankStalica
      @ProfessorHankStalica  9 месяцев назад +1

      Good idea. I'll look to add that when I update this video. Thanks for the suggestion.

    • @blackimp4987
      @blackimp4987 9 месяцев назад +1

      @@ProfessorHankStalica thank you for your videos