Weak Pointer In C++

Поділитися
Вставка
  • Опубліковано 23 гру 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 4 роки тому +2

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

  • @markgraham2312
    @markgraham2312 4 роки тому +1

    The cyclic dependency example is the key!

  • @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.

  • @charjun4640
    @charjun4640 4 роки тому

    Thank you so much for the clean and clear explanation.

    • @CppNuts
      @CppNuts  4 роки тому

      Glad it was helpful!

  • @VineethThungani
    @VineethThungani Рік тому

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

  • @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!

  • @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.

  • @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.

  • @helloworld-fv8kx
    @helloworld-fv8kx 2 роки тому

    a very good explanation! thanks a lot 😊

    • @CppNuts
      @CppNuts  2 роки тому

      Glad it was helpful!

  • @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?

  • @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?

  • @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?

  • @yogeshasati6210
    @yogeshasati6210 8 місяців тому

    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.

  • @prakashkondru5020
    @prakashkondru5020 3 роки тому

    When we are started the new batch in online classes?

    • @CppNuts
      @CppNuts  3 роки тому

      I don't teach online

  • @mohdazka
    @mohdazka 4 роки тому +1

    Good job bro .....keep posting 👍

  • @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.

  • @akhilasahu4976
    @akhilasahu4976 3 роки тому

    Well explained...Great!!

    • @CppNuts
      @CppNuts  3 роки тому

      Glad it was helpful!

  • @lokeshreddytheegala5715
    @lokeshreddytheegala5715 4 роки тому

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

  • @ibsaabraham2322
    @ibsaabraham2322 3 роки тому

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

  • @sebasman1000
    @sebasman1000 4 роки тому +1

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

  • @preetikhanna7034
    @preetikhanna7034 4 роки тому +1

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

  • @deepakjha310
    @deepakjha310 4 роки тому

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

    • @CppNuts
      @CppNuts  4 роки тому

      UA-cam should enable that..

    • @deepakjha310
      @deepakjha310 4 роки тому

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

  • @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

  • @prashantkassa9162
    @prashantkassa9162 Рік тому

    Can you pls share the code

  • @rajanbcakumar
    @rajanbcakumar 4 роки тому +1

    Please make tutorial for C++ QT also.

    • @CppNuts
      @CppNuts  4 роки тому +4

      QT is not my cup of tea.

  • @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.

  • @deepalipatil4410
    @deepalipatil4410 4 роки тому

    great videos!!!

    • @CppNuts
      @CppNuts  4 роки тому

      Thanks dude...

  • @shilpaaggarwal5008
    @shilpaaggarwal5008 3 роки тому

    Great !

  • @kentakeshi8716
    @kentakeshi8716 Рік тому

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

  • @pramodkumarkar1688
    @pramodkumarkar1688 3 роки тому

    Good Job :)

    • @CppNuts
      @CppNuts  3 роки тому

      Thanks for the visit

  • @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..

  • @dakshverma5398
    @dakshverma5398 5 місяців тому

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

  • @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

  • @Elzelgator
    @Elzelgator 3 роки тому

    Is this good tutorial.. One cannot eaisly tell