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

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?

question mark

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

Valitse oikea vastaus

question mark

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

Valitse oikea vastaus

question mark

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

Valitse oikea vastaus

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 3

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Overview Shared vs Unique vs Weak Pointers

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 3
some-alt