Smart Pointers Explained with Code Implementation | MUST know topic for C++ Interview!!

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 127

  • @jsuryakt
    @jsuryakt ปีที่แล้ว +82

    Current husband

    • @akshatchaturvedi7407
      @akshatchaturvedi7407 ปีที่แล้ว +3

      Correct

    • @siddharthkeshri5649
      @siddharthkeshri5649 ปีที่แล้ว +12

      What this Current husband means?😂 she will change it future or what ? no.She is very much commited yo him ♥️

    • @varunaggarwal7126
      @varunaggarwal7126 ปีที่แล้ว +9

      class MoveBF {
      private:
      Husband* curr;
      public:
      MoveBF() : curr(nullptr) {}
      void move(Boyfriend* before) {
      if (before != nullptr) {
      curr = before->getHusband();
      before->setHusband(nullptr);
      }
      }
      };

    • @entertainingshorts24
      @entertainingshorts24 ปีที่แล้ว

      What is his name? And where he works?

    • @imkir4n
      @imkir4n ปีที่แล้ว

      @@siddharthkeshri5649 no one can decide future.

  • @__hannibaal__
    @__hannibaal__ ปีที่แล้ว

    Best explanation for beginer. For me i still us pointer (as in C), because i like it too much.

  • @bhavuks6554
    @bhavuks6554 ปีที่แล้ว +2

    RAII --> Resource Acquisition "Is" Initialization

  • @himansumaurya2883
    @himansumaurya2883 ปีที่แล้ว +13

    I came here to see her ex,
    and now I'm learning c++ concepts didn't expected that😂

  • @rahulr9301
    @rahulr9301 ปีที่แล้ว

    The way you two people presenting is really Fantastic!!!!! Thanks a lot!!!!

    • @MCroppered
      @MCroppered 8 หลายเดือนก่อน

      He interrupts her when she speaks.

  • @Superdhivakar
    @Superdhivakar 11 หลายเดือนก่อน

    First time impressed with the way of teaching!

  • @shashichaturvedi4543
    @shashichaturvedi4543 11 หลายเดือนก่อน

    it seems like you people have explained the same whatever has already written for unique smart pointer right.I appriciate your effort but you can explain the usage of smart pointer, I think you got it now

  • @harisankar9219
    @harisankar9219 ปีที่แล้ว +22

    ex boyfriend 💔 but husband 😂😂😂

  • @souravsarkar6107
    @souravsarkar6107 ปีที่แล้ว

    Well Understanding Lot more advance concepts in c++ thank you

  • @AryanSharma-ub9gr
    @AryanSharma-ub9gr ปีที่แล้ว +9

    Ex Boyfriend >>> Current Husband

  • @tanyagupta4247
    @tanyagupta4247 ปีที่แล้ว +11

    I'm so glad you made a video on smart pointers I really needed that and the explanation was really convincing. If possible kindly make a series on advance concepts of C++ which include all these topics like move, move copy constructor, rvalue , lvalue and all. Thanks for the video ♥️

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว +1

      Next video on smart pointers is up! Hope you like it 😇
      Will cover other topics as well!!

  • @beautyofmathematics8324
    @beautyofmathematics8324 ปีที่แล้ว

    Your Videos Are really awesome Sir and Mam Really Appreciable :)

  • @rushabharjain5257
    @rushabharjain5257 ปีที่แล้ว +2

    Loved the way how the need was created and how it was explored to get done with these important concepts
    Di, would be better if the title is aligned also with concepts you and bhaiyya have taught in video!

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      Another similar video is up, hope you like it ❤️😇

  • @siddharthchaudhary2320
    @siddharthchaudhary2320 ปีที่แล้ว +6

    Just a doubt ,are these high level concepts or used at fresher level coz haven't been taught all these in college?

    • @fatefury1955
      @fatefury1955 ปีที่แล้ว

      They teach you in computer architecture in college.

  • @DeepikaSingh-dp3bi
    @DeepikaSingh-dp3bi ปีที่แล้ว +3

    You should create a series of this. Loved the approach. Easily understandable.

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว +1

      Yas! New video is up! Hope you like it 😇❤️

  • @cutebaby7767
    @cutebaby7767 ปีที่แล้ว +4

    Please cover other c++ concept as well with your ex bf. His way of explanation is very nice.

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      New video up! Hope you like it! 😇❤️

  • @vamshikrishnareddy76
    @vamshikrishnareddy76 ปีที่แล้ว +7

    the way your husband explained things is really great.... do you guys have any plans for c/c++ bootcamp?

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      For now, it’s all free. Checkout the new video 😇

  • @_wassaname_
    @_wassaname_ ปีที่แล้ว +11

    next level clickbait

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      Whatever makes people study 🤷🏻‍♀️

  • @varunoyal87
    @varunoyal87 2 หลายเดือนก่อน

    curious to know of the below call will do the same thing:
    ptr.res =nullptr
    delete ptr
    ptr.reset()
    in move copy ctor?
    Thanks alot

  • @shriramwarrior8936
    @shriramwarrior8936 ปีที่แล้ว +5

    Are C++ programmers in demand? I solved 100+ problems in Leetcode in C++. Please share your thoughts on C++ jobs.

    • @coderprakash
      @coderprakash ปีที่แล้ว +1

      Noo C++ is only for doing coding for jobs u want to learn Java for development jobs

    • @shriramwarrior8936
      @shriramwarrior8936 ปีที่แล้ว

      @@coderprakash ok. Cool. Then why do people study OOPs and DSA in CPP?

    • @coderprakash
      @coderprakash ปีที่แล้ว

      @@shriramwarrior8936 we seen that DSA and oop is fine in c++ by all of us and lot of big folks also who working in big product based companies are code in c++ in their coding interviews but the problem is when u enter that company u will assign to backend majorly springboot means Java again those folks need to work in Java that's i need to convey am not degrading any language I love c++ than Java , telling about situation 🙏

    • @coderprakash
      @coderprakash ปีที่แล้ว

      @@shriramwarrior8936 * because of resources are more in c++ than Java that's one reason another is c++ is easier compared to Java 🤝

    • @gyanaranjansendha1299
      @gyanaranjansendha1299 11 หลายเดือนก่อน +1

      yes c++ is in demand because of its low latency. HFT and fintech companies which uses C++ to reduce latency

  • @subbuk9716
    @subbuk9716 7 หลายเดือนก่อน

    Excellent explanation

  • @easward
    @easward ปีที่แล้ว +3

    Ah you got me, well what you said is right in literal

  • @ebadjunaid9418
    @ebadjunaid9418 ปีที่แล้ว

    Actually there is a problem and the problem is this in original unique pointer we can create a unique pointer which points to the array and in your implementation this will be error can you tell me how I can implement this ?

  • @Luckygangff
    @Luckygangff 3 หลายเดือนก่อน

    Hi how to delete if we alocate array dyanamic memory
    Like uniqueptr ptr(new int[10]);
    Need to handle both single memory o heap and array of memory in heap using delete and delete[] functions

  • @rajdippal51
    @rajdippal51 5 หลายเดือนก่อน +3

    Don't add random memes in between please 🙂

  • @varunoyal87
    @varunoyal87 10 หลายเดือนก่อน

    I have query, How move() Called function overloading defined in your uniqueptr class , when you said this function recieves ptr1 as && but how?
    should not we use ptr1.move() like ptr.reset()?
    so that it should call user defined move not std::move().
    While explaining ->operator , you mentioned we dont have any function but we are using reset as function only ptr1.reset(), if we need to call it as ptr1->reset(), can we do it?
    one more , how to decide return *res or res and return type would be & or *? Any reference to understand this ..is can explain with diagram would be really helpful.
    Please prepare video for rvale and lvalue in detail.
    Thanks alot

  • @yashnikam9189
    @yashnikam9189 ปีที่แล้ว +2

    Good videos need such more content related to cpp. Learned a lot of things while watching this video. Thankyou

  • @KishorePurswani
    @KishorePurswani ปีที่แล้ว +8

    Love your approach of teaching. You come up with novel approach every time.

    • @rohitgupta2223
      @rohitgupta2223 ปีที่แล้ว +1

      Father of keerti. Sir keerti ma'am se refrral hi dilwa do

  • @thearbind
    @thearbind ปีที่แล้ว

    Mandipislive Army #Mandipislive 😊

  • @ajayk.2388
    @ajayk.2388 ปีที่แล้ว

    Nice video!
    which editor is he using? Is It vs code?

  • @revankumargnanavel64
    @revankumargnanavel64 7 หลายเดือนก่อน

    Hello guys,
    When I tried to perform the mimicing of UniquePtr, especially the move copy constructor, I encounter the following error. Any help to fix would be great.
    error: comparison between distinct pointer types ‘UniquePtr*’ and ‘int*’ lacks a cast [-fpermissive]
    37 | if(this != &ptr) {

  • @santanu29
    @santanu29 ปีที่แล้ว +3

    My Husband teaches me C++ ❌
    My Ex-Boyfriend teaches me C++ ✔
    Nice way to clickbait. (Saying just for fun. No hate 🙏)

  • @srinivasbusani5076
    @srinivasbusani5076 8 หลายเดือนก่อน

    Is that guy from VECTOR India institute ?

  • @ashb8552
    @ashb8552 11 หลายเดือนก่อน

    5:04
    Is he using vs code, if leaked yes then
    How to get that memory graph 😮

  • @GauravThinks
    @GauravThinks ปีที่แล้ว +2

    Didi: clickbait aisi karo, ki 4 log click karein😂.
    Btw i liked the content❤️

  • @GautamDinga
    @GautamDinga ปีที่แล้ว

    I didn't understand the memory leak thing...
    He deleted the variable 'a' after that 'a' stored in the stack got deleted but still remains in the heap.
    When he deleted the memory was reduced it came to 757 KB and he said no leak
    How did this process happen? I just saw memory got reduced...

    • @niteshsingh7674
      @niteshsingh7674 9 หลายเดือนก่อน

      Exact same question I've.
      1. As per your explanation of memory leak, the value in heap memory lies there i.e the pointer variable 'a' pointing to the value stored in heap memory is still there that's why memory leak happens.
      2. Deleting pointer variable 'a' stored in stack memory will delete that particular space in stack memory which is occupied by 'a'.
      3. But value in heap memory to which a'' was pointing, didn't get deleted as per my understanding.
      @keertiPurswani : can you please explain?

  • @piyushjhaGeek
    @piyushjhaGeek ปีที่แล้ว +2

    Saw this video thumbnail in my feed and it's was cringe clickbait for college students. Software engineering has become a joke by these influencers.

  • @Luckygangff
    @Luckygangff 11 หลายเดือนก่อน

    I think ptr.release() is missing

  • @sonaliroychowdhury4271
    @sonaliroychowdhury4271 ปีที่แล้ว

    Hey Keerthi, may you have the universe with you following your heart!!All the very best to you.

  • @iayushch
    @iayushch 27 วันที่ผ่านมา

    very helpful

  • @Raja-d6w
    @Raja-d6w 2 หลายเดือนก่อน

    I am trying to hit the website what you have provided is not working.is it a problem because currently i am hitting from USA??

    • @KeertiPurswani
      @KeertiPurswani  2 หลายเดือนก่อน

      Hey, we have many students from all over the world - the site should be accessible. Can you please try again? If facing issues, please reach out to us at support@educosys.com . We will get it sorted asap. Thanks!

    • @Raja-d6w
      @Raja-d6w 2 หลายเดือนก่อน

      @@KeertiPurswaniIt was a typo, instead of courses i was writing course. Now i landed educosys site which i had already visited after watching your another video.
      Definitely i will purchase LLD, HLD and System design Course. Your way of explaining is awesome.kudos.

  • @shashikumar-sv
    @shashikumar-sv ปีที่แล้ว +1

    Who is on the screen 🤔

  • @Ragani59
    @Ragani59 ปีที่แล้ว

    didi mai bhi apka tarah non technical background se hu please help me how to start coding in write way phele kya pada shuru sa

  • @kulasekhar
    @kulasekhar ปีที่แล้ว

    May i know why the return value from the copy assignment operator output does not have the template type "T" ?

    • @vamsisiddhani9245
      @vamsisiddhani9245 9 หลายเดือนก่อน

      The return type does not include the template type T because the return type is not dependent on the template parameter T. The return type is simply a reference to the current uniquePtr object, regardless of the type of object it manages. Correct me if I'm wrong.

  • @khalilurrehman3149
    @khalilurrehman3149 ปีที่แล้ว +3

    If he is ex--> currently I am available Keerti --> I like you v much❤

    • @ujalavarshney480
      @ujalavarshney480 ปีที่แล้ว +2

      Abe husband hai woh unka

    • @entertainingshorts24
      @entertainingshorts24 ปีที่แล้ว

      ​@@ujalavarshney480kya naam hai inke husband ka? And where he works?

  • @dheerajkumar824
    @dheerajkumar824 ปีที่แล้ว

    How to visualise that storage portion of memory leak?

  • @Ragani59
    @Ragani59 ปีที่แล้ว

    Didi mujhe cs nahi mil Raha hai mujhe suside karna ka man kar raha tha lakin unfortunately apki video mara samne aa gayi please help me

  • @FireHarmony-dl2bk
    @FireHarmony-dl2bk ปีที่แล้ว

    Good content, just drop the meme part.

  • @SiddharthEarth
    @SiddharthEarth ปีที่แล้ว

    exposing family one by one ....
    but loved the learning part

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      Learning is what matters in the end 😇

  • @prasannanaik1023
    @prasannanaik1023 ปีที่แล้ว

    Trust me the way he explain is really good. I wanted to see her ex bf and ended up watching his coding 😂

  • @renupurswani447
    @renupurswani447 ปีที่แล้ว

    Lovely. Happy to see you being taught

  • @Vishal-rfx
    @Vishal-rfx ปีที่แล้ว

    Hey Keerti. Discord link in the description is invalid.

  • @ViralAgrawal12321
    @ViralAgrawal12321 ปีที่แล้ว

    When is the next new batch starting?

  • @thearbind
    @thearbind ปีที่แล้ว

    WE ARE HERE AFTER MandipisLive

  • @prashanth7641
    @prashanth7641 ปีที่แล้ว

    I didn't get why &&ptr is used.

  • @palashyadav668
    @palashyadav668 ปีที่แล้ว

    Thanku for this video☺,will be waiting for the next video

  • @bhavikajangid8579
    @bhavikajangid8579 ปีที่แล้ว +1

    i really love the way you teach, but i'm not really fond of the memes.

  • @powprashant
    @powprashant ปีที่แล้ว

    Correction RAII stands for "Resource Acquisition is Initialization" not "in".
    Its a misnomer and IMHO a terrible name to a very powerful concept in C++

  • @thatowlfromhogwarts490
    @thatowlfromhogwarts490 ปีที่แล้ว

    yess yess! i want a series..!
    thanks

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      New video up! Hope you like it! 😇

  • @the_sudheendra
    @the_sudheendra ปีที่แล้ว +2

    Crazy Title 🤣

  • @akhilsharma1778
    @akhilsharma1778 ปีที่แล้ว

    Your discord community link invite is not working

  • @AnshulPurswani-e8d
    @AnshulPurswani-e8d ปีที่แล้ว +1

    happy to see you both

  • @BhavikaRajani
    @BhavikaRajani ปีที่แล้ว

    Great idea. great concept

  • @utkarshdubey2433
    @utkarshdubey2433 ปีที่แล้ว

    Keerti di aise behave kar rahei jaise kuch jante h na ho😂😂😂👌👌👌

  • @e431215
    @e431215 9 หลายเดือนก่อน

    What is this IDE?

  • @mdaasil2329
    @mdaasil2329 ปีที่แล้ว

    7:22 please make the scrolling of the advertisement slow

  • @soumya9070
    @soumya9070 6 หลายเดือนก่อน

    A friendly advice from a developer(and a student too), your content is great but too much unnecessary meme clips in between that distract me a lot. When I am focusing on a particular line and understanding a concept, using my brain, carryminati comes on the screen and rotates his head 5 times, suddenly the line of code is gone and my chain of thoughts regarding the concept is just ruined in a second. Please understand that this is educational video not entertainment video. Thanks.

  • @lordvader7341
    @lordvader7341 ปีที่แล้ว

    boyfriend still got it!!!

  • @nd2703
    @nd2703 8 หลายเดือนก่อน

    Looking bhaiya talk to didi, mereko dil me gudgudi ho rahi h, how romantic😍

  • @kumarvishalben
    @kumarvishalben ปีที่แล้ว +3

    Clickbait

  • @omkarjadhav848
    @omkarjadhav848 ปีที่แล้ว

    Didi kya jarurat he ye wali clickbait ki?

  • @pranilscode
    @pranilscode ปีที่แล้ว

    Getting bad experience in video when the comedy sense hit in Video 😢😢😢

  • @dheerajkumar824
    @dheerajkumar824 ปีที่แล้ว

    That meme bw the video making me laugh even though it was not needed

  • @piyushsingh178
    @piyushsingh178 ปีที่แล้ว

    I don't understand what =delete; does

  • @priyanjaygoswami9595
    @priyanjaygoswami9595 ปีที่แล้ว

    He is bit shy but good Collab 😊😅

  • @asmitamishra4965
    @asmitamishra4965 ปีที่แล้ว

    Great pairing.

  • @sdsingh3577
    @sdsingh3577 ปีที่แล้ว

    We want love babbar in your interview series

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      Tell him!! He should be ready no 🫢

    • @sdsingh3577
      @sdsingh3577 ปีที่แล้ว

      @@KeertiPurswani He is always ready ....... 😎

  • @MaviLeb
    @MaviLeb 3 หลายเดือนก่อน

    Why is this advanced? Shouldn't that be part of the basics of C++?

  • @sarthakgadekar3092
    @sarthakgadekar3092 ปีที่แล้ว

    Someone please tell me which IDE is that

    • @KeertiPurswani
      @KeertiPurswani  ปีที่แล้ว

      Visual Studio!

    • @sarthakgadekar3092
      @sarthakgadekar3092 ปีที่แล้ว

      @@KeertiPurswani doesn't look like that🤔

    • @AmitKumar-ph8wm
      @AmitKumar-ph8wm ปีที่แล้ว

      @@sarthakgadekar3092 install it and you will know that it is visual studio . not "visual studio code"

  • @amogu_07
    @amogu_07 ปีที่แล้ว

    Crazy title

  • @visinigiri-aditya
    @visinigiri-aditya ปีที่แล้ว +1

    Text Editor ?

    • @shis10
      @shis10 ปีที่แล้ว

      VS

    • @visinigiri-aditya
      @visinigiri-aditya ปีที่แล้ว

      @@shis10 fhir Memory Usage kaise dikh rha ?

    • @mdaasil2329
      @mdaasil2329 ปีที่แล้ว

      @@visinigiri-aditya its vs not vsc

    • @shis10
      @shis10 ปีที่แล้ว

      @@visinigiri-aditya Debugging karte samay dikha tha hai Visual Studio

    • @visinigiri-aditya
      @visinigiri-aditya ปีที่แล้ว

      @@shis10 ohh thanks!

  • @SuccessfulMiddleclassGuy
    @SuccessfulMiddleclassGuy ปีที่แล้ว

    She really doesn't seem interested😂😂
    Just forced... Great acting 😅

  • @skoolkaladka5452
    @skoolkaladka5452 ปีที่แล้ว

    😂😂😭😭😭😭😭😭😭😭😭😭

  • @anuragpatwa4337
    @anuragpatwa4337 4 หลายเดือนก่อน

    total waste of time,

  • @kartikgaud-m2v
    @kartikgaud-m2v ปีที่แล้ว

    😀😀😀😀😅😅😅😅