ProDeveloperTutorialonFebruary 10, 2025 C++ 11 feature: auto and decltype auto and decltype are the 2 new keywords that have been added in C++ 11. In this chapter we shall see how to use both of them. auto: auto…
ProDeveloperTutorialonFebruary 10, 2025 C++ 11 feature: Delegating constructor Delegating constructor is a new concept in C++ 11. Why we need delegating constructor? 1. Delegating constructor is used to prevent code…
ProDeveloperTutorialonFebruary 10, 2025 C++ 11 feature: constexpr “constexpr” is a new concept in C++ 11. In this chapter we shall have a look at “constexpr” topic.…
ProDeveloperTutorialonFebruary 10, 2025 C++ 11 feature: nullptr “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…
ProDeveloperTutorialonFebruary 10, 2025 C++ 11 Smart pointers : weak_ptr tutorial and example unique_ptr is a smart pointer available in C++ 11. Weak pointer is used along with shared pointers. You cannot create a standalone unique…
ProDeveloperTutorialonFebruary 9, 2025 C++ 11 Smart pointers : unique_ptr tutorial and example unique_ptr is a smart pointer available in C++ 11. Below are the points that we shall see in unique_ptr. 1. Points on unique_ptr 2. Syntax for…
ProDeveloperTutorialonFebruary 9, 2025 C++ 11 Smart pointers : shared_ptr tutorial and example Smart Pointers are available from C++ 11. Smart pointers are used to make sure that the object gets deleted if it is no longer used. In this…
ProDeveloperTutorialonFebruary 9, 2025 C++ 11 feature rvalue reference and move constructor In this chapter we shall learn about: 1. what are lvalue and rvalue. 2. What are reference variables? 3. what are rvalue reference. 4. Example…
ProDeveloperTutorialonFebruary 9, 2025 Overloading new and delete operator in C++ We can overload new and delete operator in C++. There are 2 ways to overload. 1. Locally Overloading new and delete operator 2. Globally…
ProDeveloperTutorialonFebruary 9, 2025 Assignment Operators Overloading in C++ In this tutorial we shall see how to overload assignment operator “=”. #include <iostream> // for more tutorials check…