3 ms·
> you don't need to use a shared_ptr equivalent Well, it's the same thing, but without the atmoics. Rc and Arc only differ in the instructions used to update t
by steveklabnik 11y ago
> you don't need to use a shared_ptr equivalent
Well, it's the same thing, but without the atmoics. Rc and Arc only differ in the instructions used to update the count, Rc uses regular increment, Arc uses atomic increment. The code is otherwise the same.
- chadzawistowski 11y agoHow confusing! Rust's Arc is "atomic reference counting" whereas Obj-C/Swift's Arc is "automatic reference counting"