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
?
Var alt klart?
Tak for dine kommentarer!
Sektion 5. Kapitel 3
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 5.56
Overview Shared vs Unique vs Weak Pointers
Stryg for at vise menuen
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
?
Var alt klart?
Tak for dine kommentarer!
Sektion 5. Kapitel 3