Handling return values from function calls is a common activity in computer programming. However, in many cases it cannot be guaranteed that the returned value…
Software Developer
Handling return values from function calls is a common activity in computer programming. However, in many cases it cannot be guaranteed that the returned value…
One of the most murky things that could be done with old-style C++ is that of handling heterogeneous data at run time, that is values…
C++11 introduced a more generalized framework to write constant expressions, extending to regular functions and user-defined objects. This removed many of the limitations in previous…
Yet another small useful feature that’s already used in many other languages as a core syntax has been brought into C++. Probably you have been…
Another small but convenient extension to C++11 is the possibility of using the auto specifier to tell the compiler to work out the return type…
C++11 has introduced a powerful long-awaited feature that greatly simplifies writing code that requires the use of closures, and that is lambda expressions. C++14 has…
Constant expressions are an important part of programming languages because of the opportunity for aggressive optimization in the compilation process. A constant expression is broadly…
C++ provides default implementations for several functions and operators that are implicitly defined by the compiler if there are no user-defined ones. Specifically, the following…
One of the most controversial features of C++, historically, regarded the use of “null” pointers in a consistent and type-safe manner. Intuitively, a null pointer…
This is one of the features that has always surprised me it was not supported in earlier standards. Even though it’s a very simple construct,…