Multi-threading programming is supported from C++11. Prior to C++11, single thread programming was supported. Introduction: A thread is a smallest unit of program execution. These threads can run in parallel and can increase efficiency and decrease execution time of a program. A thread reside inside …
“dynamic_cast” is new concept in C++ 11. dynamic_cast is used at runtime to check the correctness of down casting. As it checks the correctness at runtime, it is slower than “static_cast”. “dynamic_cast” is used in handling polymorphism. “dynamic_cast” will return the object if the cast is …
Delegating constructor is a new concept in C++ 11. Why we need delegating constructor? 1. Delegating constructor is used to prevent code duplication. 2. It is the only way to delegate the initialization list Consider the code below: #include <iostream> //for more C++ tutorial visit www.ProDeveloperTutorial.com …
“constexpr” is a new concept in C++ 11. In this chapter we shall have a look at “constexpr” topic. “constexpr” are used in the scenario, where there is a possibility to evaluate the value of the function or variable at compile time. “constexpr” is the keyword …
“nullpt” is a new concept that has been introduced in C++ 11. Earlier to C++ 11, NULL has been defined as: #define NULL 0 But after C++ 11, NULL has been defined as #define NULL nullptr “nullptr” is defined in #include <cstddef> header file. It means …