开发者

Are C++ initializers called in Objective-C synthesized properties?

开发者 https://www.devze.com 2023-01-14 07:02 出处:网络
Are C++ initializers开发者_如何学C called in Objective-C synthesized properties?Meaning if I write a custom initializer for creation from another object of the same type (C++) does the synthesized pro

Are C++ initializers开发者_如何学C called in Objective-C synthesized properties? Meaning if I write a custom initializer for creation from another object of the same type (C++) does the synthesized property setter call that initializer?


I assume by initializer you actually mean a C++ constructor. In a synthesized setter the copy constructor for the C++ object is called.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号