On 4/19/12 9:57 AM, bob wrote:
> Why did the .h get dropped from many files? For instance, why did vector.h become vector and iostream.h become iostream?
I will note, besides the other comments that have been made, that the
standard does not require that <vector> does not need to reside in a
file with the name "vector" (or even in a file). It is quite legal and
proper for a compiler to define that when including a file with a name
without an extension, the compiler will also look for that same file
with the, say, .hpp extension, thereby allowing the file to have an
extension for those tools that want/need one, but also to look in source
files the way the standard describes.
|