Matt Devoto's profile

C++ STL Vector Implementation

Over the course of two weeks, I developed my own version (albeit, a simpler version without as much functionality) of the C++ STL std::vector. I used Visual C++ in Microsoft Visual Studio 2010 to develop it. Below are the test results which compare the actual standard library implementation of vector, to mine. The report shows data using three different data types: float, string and a selfCounting defined type. In many cases, my simpler version of STL vector is faster, but slightly slower in some. Obviously, the STL std::vector could be faster but it doesn't have the luxury of only optimizing for speed. This was a great project because it stressed my familiarity with C++'s core functionality, i.e. arrays and pointers, without the help of the standard library (this was all done in one single header, obviously).
C++ STL Vector Implementation
Published:

C++ STL Vector Implementation

My implementation of C++'s std::vector

Published:

Creative Fields