#include #include std::optional maybeInt() int main() { std::optional maybe = maybeInt(); if(!maybe) std::cout << "object is null\n"; }