   Best data structure to store array of floats? (C++)
  I want to store many float array's of length 16, representing transform matrices. I'm using C/C++/Objective-C on the iphone platform.I tried using some of the STL containers, but they can't contain non-copyable objects. I don't  want to just use a regular array since I want dynamic resizing. I suppose I could make a wrapper class and use a NSMutableArray?I just wanted to know what the best standard for this problem would be, I expect I'll have to do something similar with vertices, colours, etc.   
  Just make a "TransformMatrix" wrapper class that consists of an array of 16 floats and a copy contructor. I can't comment on what is an NSMutableArray, but a vector<TransformMatrix> would do exactly what you want.   ;Quote:Original post by EZ3I'm using C/C++/Objective-C on the iphone platform.Which is it? Or how are you interfacing them?Quote:I tried using some of the STL containers, but they can't contain non-copyable objects.So? You can easily wrap a float[16] in a struct declaration and it will be perfectly copyable.Better yet, use boost::array.   