C-style casting, static casting, dynamic casting, reinterept casting
C-style casting, static casting, dynamic casting, reinterept casting
Static variables/functions, static in the context of class/struct
Virtual destructor is used to prevent memory leak in the context of polymorphism.
Virtual function, pure virtual function, abstract class
The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time.
How to interpret complex C++ variable declarations
From int* p to int (*(*p)[])()
C++ variable definition can be very complex when *, & and nested brackets exist. This tutorial lists some examples from easy to advanced level to help you walk you through each of them and understand how we should interpret them in a more systematic way.
An introduction of Lambda expression in C++
std::span was introduced as a new feature in C++20
Great quick reference for C++ STL
why we use emplace_back()? When should we use emplace_back()?