开发者

use c++ template class from objective c file

I would like to use a C++ class in an objective c application. How to ach开发者_StackOverflowieve this?

Thanks for your helps :)


You can do this using "Objective-C++". You should read Apple's documentation, but the short version is that you may mix C++ and Objective-C in files with the extension ".mm". It's not magic (C++ classes and Objective-C classes are still separate things), but you can now use them in the same code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜