4 ms·C++ has std::optional for exactly that purpose.by usefulcat 2y agoC++ has std::optional for exactly that purpose.