Header apple_cf_ptr.h¶
Smart pointer support for Apple Core Foundation objects. Available on macOS only.
-
template<class T>
using cf_ptr = intrusive_shared_ptr<std::remove_pointer_t<T>, cf_traits>¶ An
intrusive_shared_ptrfor Core Foundation types, counted withCFRetainandCFRelease.Tis a CF pointer type such asCFStringRef, so you spell itcf_ptr<CFStringRef>.
-
struct cf_traits¶
Calls
CFRetainto add a reference andCFReleaseto drop one. Works for anyCFTypeRef.