3 ms·
Code that does #include <vector> must compile, so that header must exist (whether it is stored in a file is the implementer’s choice. AFAIK, the standard ca
by Someone 5y ago
Code that does
#include <vector>
must compile, so that header must exist (whether it is stored in a file is the implementer’s choice. AFAIK, the standard carefully avoids the use of the term ‘header file’)
Also, I think code that doesn’t do that include must fail to compile when it tries to use std::vector. So, logically, that header must exist.
- gpderetta 5y agoWell not really. The preprocessor is part of the compiler, so it only needs set a flag to tell the compiler proper to enable std::vector.