robot-contrib 262241439f Update contrib/restricted/boost/optional to 1.83.0 | 1 year ago | |
---|---|---|
.. | ||
include | 262241439f Update contrib/restricted/boost/optional to 1.83.0 | 1 year 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 | 887be65957 External build system generator release 29 | 1 year 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 | 262241439f Update contrib/restricted/boost/optional to 1.83.0 | 1 year ago |
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.