Saturday 1 October 2011

My Custom C/C++ Vector Container

Here is the code for a C/C++ templated vector container that I created, feel free to use it at your own leisure. It offers functionality similar to the STL Vector container.

Vector.h - This is the Header File:


Vector.inl - This is the INL File:


Heres is a snippet of code showing how to use the vector container, its pretty simple to follow.
There are two #defines "FOR_EACH_VEC" and "FOR_EACH_VEC_REV" that you can use if you want to make writing iteration code easier.



If you find any errors, problems etc.... with this, please use Google first however if Google does not help my E-Mail adress is matthewgolder@hotmail.co.uk.

No comments:

Post a Comment