I was just curious because in my homework it says that the following statement is false:
The C++ Standard Library functions and classes are not included in every C++ implementation.
I don’t think that the Standard Library is included in every C++ implementation unless you add (#include) the appropriate headers, right? In that case, I think that the above statement is true, not false.
Is the statement true or false?
Looks like unfortunate overloading of the word “include”.
Your C++ compiler comes with files containing the standard library. So they are “included”. But they aren’t
#include-d, you have to write#includein your source files to get access to the standard library.In addition, there are hosted and freestanding implementations. Here’s what the Standard says:
Since the statement says “every C++ implementation”, and freestanding implementations do not include the entire C++ Standard Library, the statement is TRUE.