Share this postDaily bit(e) of C++Daily bit(e) of C++ | Accessing content of std::optionalCopy linkFacebookEmailNotesMoreDaily bit(e) of C++ | Accessing content of std::optionalDaily bit(e) of C++ #110, Accessing the content of C++17 std::optional Šimon TóthApr 21, 20232Share this postDaily bit(e) of C++Daily bit(e) of C++ | Accessing content of std::optionalCopy linkFacebookEmailNotesMoreShareThe std::optional (C++17) offers several interfaces to access the contained value.The choice depends on your coding style and your desired exception semantics.Click to open in Compiler Explorer.Leave a commentThanks for reading Daily bit(e) of C++! Subscribe for free to receive new posts and support my work.Subscribe