Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Overview Shared vs Unique vs Weak Pointers | Advanced topics
C++ Smart Pointers

bookOverview 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?

question mark

What happens when multiple std::shared_ptr instances share ownership of the same object, and all of them go out of scope?

正しい答えを選んでください

question mark

Which of the following is true about std::unique_ptr?

正しい答えを選んでください

question mark

Why would you use a std::weak_ptr instead of a std::shared_ptr?

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 5.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 5.  3
some-alt