Anonymous user
Null object: Difference between revisions
→{{header|C++}}: Prefer C++17's std::optional over boost::optional since most modern compilers fully support C++17, but keep boost::optional as a blurb
(→{{header|C++}}: Prefer C++17's std::optional over boost::optional since most modern compilers fully support C++17, but keep boost::optional as a blurb) |
|||
Line 389:
}</lang>
<lang cpp>
#include <boost/optional.hpp>▼
#include <iostream>
int main()
{
if(!maybe)
|