21 new features of Modern C++ to use in your project, Move Constructor & Assignment Operator, unique_ptr with example in C++

Lvalue Rvalue and Their References With Example in C++

Reading Time: 7 minutes This topic might be a piece of cake for every experienced C++ veteran. But I remember back in the days when I was a novice & introducing myself with Modern C++, I was really irritated by C++ compiler messages saying […]

When to Use const vs constexpr in C++

Reading Time: 4 minutes While introducing myself to Modern C++ & its new features introduced in C++11 & C++14, I have completely neglected this keyword constexpr. Initially, I was confused about when to use const vs constexpr in C++ & how this constexpr works […]

C++ type casting with example for C developers

C++ Type Casting With Example for C Developers

Reading Time: 8 minutes The typecasting is the feature which makes C++ more type-safe, robust & may convince you to use it over C. But this is also a more underrated topic when you are a newbie or moving from C background. Hence, I come […]

MEMORY LAYOUT OF C++ OBJECT, virtual function works internally

Complications of Using the Virtual Base Class

Reading Time: 6 minutes In the previous article about How Does Virtual Base Class Works Internally? we have seen address resolution of virtual base class & why it’s needed. But I have not discussed Complications of Using the Virtual Base Class. Which we will […]

2-wrong-way-to-learn-copy-assignment-operator-in-c

All About Copy Constructor in C++ With Example

Reading Time: 4 minutes Do not carry away with the title “All about copy constructor in C++ with example”. In this article, I am not going to describe what copy constructor in C++ is. There is plenty of material available for that over the […]

MEMORY LAYOUT OF C++ OBJECT, virtual function works internally

Memory Layout of C++ Object in Different Scenarios

Reading Time: 6 minutes In this article, we will see the memory layout of different C++ Object. And how different storage & access specifiers affect this memory footprint. I am not going to discuss compiler augmented code, name mangling & working of any C++ […]

MEMORY LAYOUT OF C++ OBJECT, virtual function works internally

Inside the C++ Object Model

Reading Time: 4 minutes This article is the collection of concept I have acquired while introducing myself to C++ by googling here & there. This material is also not in order. I have just collected the answer to my quick question. And write it […]