robot-contrib 1be7a368cc Update contrib/restricted/boost/optional to 1.84.0 9 months ago
..
include 1be7a368cc Update contrib/restricted/boost/optional to 1.84.0 9 months ago
CMakeLists.darwin-arm64.txt ffff7a34e4 add darwin-arm64 CMakeLists 10 months ago
CMakeLists.darwin-x86_64.txt 33ed6077e6 Intermediate changes 1 year ago
CMakeLists.linux-aarch64.txt 58a117b001 External build system generator release 8 1 year ago
CMakeLists.linux-x86_64.txt 33ed6077e6 Intermediate changes 1 year ago
CMakeLists.txt 96458ea3c7 External build system generator release 65 9 months ago
CMakeLists.windows-x86_64.txt 6324d075a5 Intermediate changes 1 year ago
README.md da8658093c Reimport boost/optional as a separate project 2 years ago
ya.make 1be7a368cc Update contrib/restricted/boost/optional to 1.84.0 9 months ago

README.md

optional

A library for representing optional (nullable) objects in C++.

optional<int> readInt(); // this function may return either an int or a not-an-int

if (optional<int> oi = readInt()) // did I get a real int
  cout << "my int is: " << *oi;   // use my int
else
  cout << "I have no int";

For more information refer to the documentation provided with this library.