The answer to “What exactly nullptr is in C++?” would be a piece of cake for experienced C++ programmers and for those who are aware of Modern C++ (i.e. keyword). But nullptr
is more than just a keyword in C++, and to explain that, I have written this article. But, before I jump into it, we will see issues with NULL
. Then, we’ll dive into the unsophisticated implementation of nullptr
and some use-cases of nullptr
.
Note: This article is more or less the same thing which you can find here, here, and in nullptr proposal(N2431) but with a more organized and simplified explanation.
The answer to “What exactly nullptr is in C++?” would be a piece of cake for experienced C++ programmers and for those who are aware of Modern C++ (i.e. keyword). But nullptr is more than just a keyword in C++, and to explain that, I have written this article. But, before I jump into it, we will see issues with NULL. Then, we’ll dive into the unsophisticated implementation of nullptr and some use-cases of nullptr.
Note: This article is more or less the same thing which you can find here, here, and in nullptr proposal(N2431) but with a more organized and simplified explanation. […]