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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 5. Kapitel 3
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 5.56
Overview Shared vs Unique vs Weak Pointers
Svep för att visa menyn
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 5. Kapitel 3