One of the most common dilemmas when designing interfaces is how to handle the values returned by functions and/or methods in cases where it cannot…
Software Developer | Computer Engineer
One of the most common dilemmas when designing interfaces is how to handle the values returned by functions and/or methods in cases where it cannot…
One of the most powerful features that a programming language can provide is the ability to handle 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 available in many other languages as a core syntax construct has been brought into C++. Probably you have…
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,…