NSMutableArray Vs Stack

Posted by Chandan Shetty SP on Stack Overflow See other posts from Stack Overflow or by Chandan Shetty SP
Published on 2010-06-08T11:45:25Z Indexed on 2010/06/08 11:52 UTC
Read the original article Hit count: 357

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,

© Stack Overflow or respective owner

Related posts about c++

Related posts about iphone