Why are there two different vector libraries in the STD library?
-
stl_vector.h -
vector.h
What's the difference between the two?
stl_vector.hvector.hWhat's the difference between the two?
If you look into the file itself you will see
/** @file bits/stl_vector.h
* This is an internal header file, included by other library headers.
* Do not attempt to use it directly. @headername{vector}
*/
Your code should not directly include stl_vector.h. It's an implementation detail of libstdc++ and could be absent in other standard library implementations.