how smart pointer can be implemented | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

how smart pointer can be implemented

Hi I got an idea that we can use ref count to implement smart pointer. Seems this is true only for shared_ptr.... how other two it means weak and unique pointer is implemented as there count is not important.

28th Dec 2020, 3:03 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
0 Antworten