Vector implementation in C++.