• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
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 Antwort
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Fix the following code
2 Votes
Mobile number and similarity
0 Votes
Can I import any module in python in this app?
0 Votes
The use of these certificates on LinkedIn
1 Votes
GitHub account connecting issue
3 Votes
Converter minúsculas em maiúsculas e imprimir
0 Votes
photo upload issue in html code
0 Votes
Algorithm to create maze-like grid
2 Votes
Coding issue
2 Votes
Loops and conditions
0 Votes