As a C++ beginner-level programmer I noticed no matter what IDE/compiler you use, you never need to explicitly include stl (Standard Template Library). Does this mean I can rely on the stl to be "always available"?
I mean if I want to use std::cout
for example, I just include the iostream
part of the stl:
#include <iostream>
...and do not need to do something like #include <std>
in the first place to continue with something like:
std::cout << "Hello world!" << std::endl;
Furthermore: can I rely on consistency for the stl? Does every function/method of the stl always behave the same way? Or are there any changes between C++ releases, operating systems or compilers?
I ask this because other libraries can really be a pain sometimes, when you do not know about certain pitfalls. For example Eigen (for linear algebra stuff) was really hard for me to get it going and I noticed changing behavior between some releases...