I am not very good at C ++, so I may not be quite right about shared_ptr, but for me they are not like each other. Obj-C has two options. Manual memory management - you manually increase and decrease the number of links for your objects, there is no magic here. And the new ARC, which is mainly a compile-time function, and shared_ptr is just a runtime implementation.
mifki source share