阅读背景:

隐藏单例来封装初始化和销毁代码

来源:互联网 

I have a library that requires manual initialization and destruction, and I'd like to make that process automatic. Since both the init and quit functions should only be called once I thought a good solution would be to use a singleton, but since calling I have a library that requires manual initializ




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: