Simplified Template Implementation of the C++ Standard Library Vector
Unlike the basic string implementation we built earlier, the vector here will be a template class. Separating declarations and definitions of template classes causes linker errors, so we implement both in a single vector.h file—this mirrors how standard library implementations (e.g., SGI STL for GCC...