NSMutableArray Vs Stack
- by Chandan Shetty SP
I am developing 2D game for iphone in Objectice-C.In this project I need to use stack, I can do it using STL(Standard template library) stacks or NSMutableArray, since this stack is widely used in the game which one is more efficient?
@interface CarElement : NSObject
{
std::stack<myElement*> *mBats;
}
or
@interface CarElement : NSObject
{
NSMutableArray *mBats;
}
Thanks,