What are the new type qualifiers introduced with ARC?

后端 未结 3 1427
天涯浪人
天涯浪人 2021-02-01 21:44

Automatic Reference Counting (ARC) introduces some new type qualifiers. I\'ve seen __strong and __weak, but what do they do?

3条回答
  •  不思量自难忘°
    2021-02-01 21:51

    The type qualifiers are __autoreleasing, __strong, __unsafe_unretained, and __weak. The property modifiers are strong, unsafe_unretained, and weak.

    Have a look at section 4 of Automatic Reference Counting in the LLVM/Clang documentation.

提交回复
热议问题