When should we use shared pointers and when to use uniqe pointers? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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?

12th Apr 2020, 5:17 PM
SanCur
1 Antwort