inline
Thanks to inline, the compiler can replace the function call with the function body. There are two reasons to use inline functions: performance and safety.
This author has not written his bio yet.
But we are proud to say that Rainer Grimm contributed 656 entries already.
Thanks to inline, the compiler can replace the function call with the function body. There are two reasons to use inline functions: performance and safety.
The new null pointer nullptr cleans up in C++ with the ambiguity of 0 and the macro NULL.
Using the context-sensitive keyword override and final, you can explicitly manage the overriding of virtual functions. In particular, the keyword override solves many issues with difficulty finding bugs in object hierarchies: Methods that should override methods of base classes. The result is syntactically but not a semantically correct program. The program performs the wrong stuff […]
Enumerations are a convenient way to define integer constants with names. These integer constants are called enumerators. Sadly, classical enums have a few drawbacks.
C++11 has user-defined literals for characters, C strings, integers, and floating-point numbers. Integers and floating-point numbers are available in raw and cooked form. Thanks to C++14, we have built-in literals for binary numbers, C++ strings, complex numbers, and time units.
User-defined literals are a unique feature in all mainstream programming languages. They empower you to combine values with units.
Just published: The C++ Standard Library: What every professional C++ programmer should know about the C++ standard library.
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.