4 ms·
> C++ developers use shared_ptr almost everywhere shared_ptr is rare in idiomatic C++ code, and is only used when you actually have a shared object, or need a
by int_19h 8y ago
> C++ developers use shared_ptr almost everywhere
shared_ptr is rare in idiomatic C++ code, and is only used when you actually have a shared object, or need a cyclic data structure with no clearly identified root. I wrote plenty of modern C++ with not a single shared_ptr in it.