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
?
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 3
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Awesome!
Completion rate improved to 5.56
Overview Shared vs Unique vs Weak Pointers
Pyyhkäise näyttääksesi valikon
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
?
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 5. Luku 3