2 ms·
I wasn't sure what ARC is: It means Automatic Reference Counting. http://clang.llvm.org/docs/AutomaticReferenceCounting.html http://clang.llvm.org/docs/Automati
by albertzeyer 15y ago
I wasn't sure what ARC is: It means Automatic Reference Counting. http://clang.llvm.org/docs/AutomaticReferenceCounting.html http://clang.llvm.org/docs/AutomaticReferenceCounting.html
In C++, you have std::shared_ptr (or boost::shared_ptr and many others) which do automatic reference counting (although you specify it explicitly that these pointers have automatic reference counting; there is no way to simply enable it for all raw pointer types).