Weak Pointer In C++

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

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

  • @markusbuchholz3518
    @markusbuchholz3518 4 года назад +16

    As mentioned before. There are very few you-tubers who displays so amazing the beauty of C++ language. Thanks.

    • @CppNuts
      @CppNuts  4 года назад +2

      Thanks, it means a lot..

  • @rajanbcakumar
    @rajanbcakumar 4 года назад +10

    It is really amazing video with deep explanation no one explaining like that.This channel helped me lot to understand the complex c++ concept in easy way.

    • @CppNuts
      @CppNuts  4 года назад +1

      Glad to hear that

  • @nmaajidkhan
    @nmaajidkhan 3 года назад +2

    This channel is my version of stack overflow. One stop for all my doubts.

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

      Thanks man...

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

    Worth, more than the paid courses, really hail to you sir 🙌

  • @markgraham2312
    @markgraham2312 4 года назад +1

    The cyclic dependency example is the key!

  • @charjun4640
    @charjun4640 4 года назад

    Thank you so much for the clean and clear explanation.

    • @CppNuts
      @CppNuts  4 года назад

      Glad it was helpful!

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

    Nice description but it will be great if you can show template class of each pointer along with it . It will help any one to understand working of pointers easily.

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

    In one interview I was asked to implement shared_ptr class and explain how reference count work. I know it but would like to see that video here.

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

    Nice explanation, highly recommended.

  • @D3athW1ng
    @D3athW1ng 4 года назад

    Good explanations on your series - enjoyed this. Nicely done.

    • @CppNuts
      @CppNuts  4 года назад

      Glad you like them!

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

    Great explanation! Thank you!

  • @helloworld-fv8kx
    @helloworld-fv8kx 2 года назад

    a very good explanation! thanks a lot 😊

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

      Glad it was helpful!

  • @yogeshasati6210
    @yogeshasati6210 7 месяцев назад

    thanks again Rupesh for wonderfull videos.. just suggestion if you are declaring any varibale pls name with some differnet name like my_sharedptr instead sharedptr or weakPtr .. some time its confusing is it standard definition or user defined..anyways again thanks for sharing knowledge.

  • @preetikhanna7034
    @preetikhanna7034 4 года назад +1

    If you use make_shared function instead of new then also it will work.

  • @mohdazka
    @mohdazka 4 года назад +1

    Good job bro .....keep posting 👍

  • @sebasman1000
    @sebasman1000 4 года назад +1

    i chuckled a bit when you said "if you have similar pee", anyways great tutorial man

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

    hey the video was good. if you can explain about the control block of shared_ptr and relation of the weak_ptr then it will be great

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

    It's that simple..........liked it

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

      Thanks man..

  • @lokeshreddytheegala5715
    @lokeshreddytheegala5715 4 года назад

    what a tutorial! .great, explaining with examples. keep it up

    • @CppNuts
      @CppNuts  4 года назад

      Thanks man!!

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

    Well explained...Great!!

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

      Glad it was helpful!

  • @gavravdhongadi9824
    @gavravdhongadi9824 4 года назад +2

    Can you suggest a place or resources where we can practice c++ programs

    • @CppNuts
      @CppNuts  4 года назад +1

      Go with the mcq i have, you will have enough practice.

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

    Would it make sense for a map that maps integers to pointers that point to unique_ptr's in a vector to store weak_ptr's? I am considering changing the pointers stored in the vector to shared_ptr's and putting shared_ptr's in the map as well, but I feel like it doesn't make sense that the map owns the data every bit as much as the vector does. Would this be an appropriate place to use weak_ptr? That the map only stores weak_ptr's to the data, while the vector stores shared_ptr's? Or is weak_ptr only supposed to be used to break circular dependencies?

  • @paragrudrawar1985
    @paragrudrawar1985 4 года назад +1

    Are there any vidoes on move semantics? At least I do not find those in this channel. If it is already there, please share the link. If not, are you planning to create one?

  • @umasree3925
    @umasree3925 4 года назад

    Ur videos are awesome, explanation is good 👏🏻, how to became member of this channel.

    • @CppNuts
      @CppNuts  4 года назад

      Thanks..
      There is a join button on channel page.

  • @jumbo999614
    @jumbo999614 4 года назад

    I tried this shared1 -> weak -> shared and shared2 -> weak ->shared. Both shared1 and shared2 point to the same weak pointer which also point to the original shared pointer.
    Number of use_count is always 2. Why not 3?

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

    The example sounds like a serial killer is explaining. lol . nice explanation though.

  • @rajanbcakumar
    @rajanbcakumar 4 года назад +1

    Please make tutorial for C++ QT also.

    • @CppNuts
      @CppNuts  4 года назад +4

      QT is not my cup of tea.

  • @krishnakumaran3697
    @krishnakumaran3697 4 года назад +1

    Hi..! Could you brief out the case where the Weak pointer causes a memory leak..!

    • @krishnakumaran3697
      @krishnakumaran3697 4 года назад +1

      Great videos Thanks :)

    • @CppNuts
      @CppNuts  4 года назад +2

      Did i said weak pointers can cause memory leaks.

    • @krishnakumaran3697
      @krishnakumaran3697 4 года назад +1

      You haven't said here.! But just for knowledge I asked. If possible you could make a video on it.

  • @deepalipatil4410
    @deepalipatil4410 4 года назад

    great videos!!!

    • @CppNuts
      @CppNuts  4 года назад

      Thanks dude...

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

    Great !

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

    Good Job :)

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

      Thanks for the visit

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

    When we are started the new batch in online classes?

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

      I don't teach online

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

    how can you use "was:" with Subject "You"??? YOU WERE IS correct

  • @deepakjha310
    @deepakjha310 4 года назад

    can you make paying option through digital platform like paytm ,gpay,phonepe.

    • @CppNuts
      @CppNuts  4 года назад

      RUclips should enable that..

    • @deepakjha310
      @deepakjha310 4 года назад

      @@CppNuts but that request will be done from your side.

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

    Can you pls share the code

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

    Is this good tutorial.. One cannot eaisly tell

  • @amargandhi1137
    @amargandhi1137 4 года назад +1

    Request you please provide me the video on thread safe

    • @CppNuts
      @CppNuts  4 года назад

      Thread safe?

    • @amargandhi1137
      @amargandhi1137 4 года назад +1

      @@CppNuts thread safe on singalton class in cpp

    • @CppNuts
      @CppNuts  4 года назад +1

      Oh now i can recall it.
      Ok i will try to fit in between my schedule. Thanks..

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

    Imagine if you wrote "Daughter destructed" inside the destructor, lol At 15:11 you deleted and wrote the same thing. Haha