I’m proud to present: The C++ Standard Library
The C++ Standard Library: All you have to know as a professional programmer about the C++ library.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 689 entries already.
The C++ Standard Library: All you have to know as a professional programmer about the C++ library.
The type-traits library empowers you to compare and modify types. All is done at compile time therefore, there is no performance penalty.
Template Metaprogramming is programming at compile time. But what has template metaprogramming in common with the type-traits library? A lot! The type-traits library is pure template metaprogramming, tamed in a library. With this post, my presentation of the type-traits library becomes more structured.
In the post Statically checked I wrote that the functions of the type-traits library are an ideal fit for static_assert. The reason is that static_assert requires a constant expression. The functions of the type-traits library provide a lot of checks which can be performed at compile time. With these posts, I will prove my statement.
static_assert is the tool in modern C++ to make your code safe.
The initialization of variables was unified in C++11. The rule is quite simple. {}-Initialization is always applicable.
Probably the most frequently used feature of C++11 is auto. Thanks to auto, the compiler determines the type of a variable from its initializer. But what is the point of safety-critical software?
After the myths, the facts will follow. Therefore, we leave the area of half-truth and untruth statements about C++.
As I started working in the embedded environment I was astonished that there was so much prejudice against the usage of C++ in embedded programming. Most are based on a wrong understanding of the programming language C++.
Bjarne Stroustrup’s FAQ makes it crystal clear. One of the design goals for C++11 was to make C++ even better for the embedded world.