robot-contrib 78fef26a7b Update contrib/restricted/boost/optional to 1.87.0 | 1 month ago | |
---|---|---|
.. | ||
.yandex_meta | 78fef26a7b Update contrib/restricted/boost/optional to 1.87.0 | 1 month ago |
include | 78fef26a7b Update contrib/restricted/boost/optional to 1.87.0 | 1 month ago |
README.md | da8658093c Reimport boost/optional as a separate project | 2 years ago |
ya.make | 78fef26a7b Update contrib/restricted/boost/optional to 1.87.0 | 1 month 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.