什么是等效的 Objective C:
template<class T>
class Singleton
{
public:
static T * instance()
{
static T t;
return &t;
}
private:
Singleton();
~Singleton();
};
通话时:
friend class Singletone<MyManagerClass>;
最佳答案
关于c++ - 如何将此 C++ 代码转换为 Objective C,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3474117/