Monthly Archives: August 2017


code
Syntax [crayon-5c6ab5597c8f5979411713/] Starting with C++11, a constructor can call another constructor of the same class. Delegating constructors cannot be recursive. Delegate in cases where the delegation makes sense eg. multiple constructors need to call the same function (checks, init etc.). For member initialization, use the in-class member initializer feature instead. […]

Classes: Delegating constructors


code
Syntax [crayon-5c6ab55985559037707565/] Usage / Usability Type aliases are similar to typedefs, however, have the advantage of working with templates. This Is only possible with the using directive. [crayon-5c6ab55985563773577246/]   [crayon-5c6ab55985569052518635/]   Quiz –¬†Which of the following will compile? [crayon-5c6ab5598556e239394001/]

General features: Type alias (Using directive)


code
Syntax [crayon-5c6ab55985dd7859582417/] Default can be applied only on compiler-generated functions, while delete can be used on any function signature.   [crayon-5c6ab55985de0731314947/] There are two special cases in the world of pointers. One is void* pointers, because there is no way to dereference them, to increment or decrement them, etc. The […]

Classes: Default / delete