阅读背景:

静态Objective-C类中的Memoization

来源:互联网 

Say I have a class method like

说我有类方法

+ (double)function:(id)param1 :(id)param2
{
   // I want to memoize this like...
   static NSMutableDictionary* cache = nil;
   //
   // test if (param1,param2) is in cache and return cached value, etc. etc
   //
}
+ (do



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

分享到: