Overview Shared vs Unique vs Weak Pointers
1. What happens when multiple std::shared_ptr
instances share ownership of the same object, and all of them go out of scope?
2. Which of the following is true about std::unique_ptr
?
3. Why would you use a std::weak_ptr
instead of a std::shared_ptr
?
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 5. Hoofdstuk 3
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Awesome!
Completion rate improved to 5.56
Overview Shared vs Unique vs Weak Pointers
Veeg om het menu te tonen
1. What happens when multiple std::shared_ptr
instances share ownership of the same object, and all of them go out of scope?
2. Which of the following is true about std::unique_ptr
?
3. Why would you use a std::weak_ptr
instead of a std::shared_ptr
?
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 5. Hoofdstuk 3