I'll check out the performance metrics you asked about and post the results.
Also, I added the remaining constructors. Here is all the constructor prototypes:
PHP Code:
- (id)init;
- (id)initWithVSize:(NSInteger)vSize;
- (id)initWithVSizeAndVal:(NSInteger)vSize val:(NSInteger)value;
- (id)initCopyhVector:(Vector *)vec;
- (id)initWithRange:(NSInteger *)first last:(NSInteger *)last;
My class has 5 constructors whereas the C++ STL only has 4. This is because I am not sure how, if possible, to make the value parameter optional. Therefor, I have one that just requires a size and another that requires both size and value. So, it's really the same.
Thanks,
Nick Powers