• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

When should we use shared pointers and when to use uniqe pointers?

Is there a rule when to prefer shared pointers and when to use uniqe pointers? Which of those is the more prefered pointer in cpp?

c++pointersshareduniqe
12th Apr 2020, 5:17 PM
SanCur
1 Odpowiedź
+ 1
hi there you will find your answer here. https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/106508/what-is-a-smart-pointer-and-when-should-i-use-one&ved=2ahUKEwjRi6zz0-PoAhVV73MBHdY4DSAQFjAOegQICBAB&usg=AOvVaw1KjwNjcT-BTUQhvMpHOAxT
12th Apr 2020, 7:48 PM
minirkk
minirkk - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Audio adding
1 Votes
C#
0 Votes
What is problem in this code
0 Votes
Stuck in Quize
1 Votes
playground input
0 Votes
C Program
0 Votes
This Program Does Something Weird. Can You Explain Why?
1 Votes
Software developer
0 Votes
Asking for final year project ideas!
1 Votes
How does JavaScript's event loop handle asynchronous operations like setTimeout, Promises, and async/await, and what are the dif
1 Votes