robot-piglet 450ee391b1 Intermediate changes | 3 месяцев назад | |
---|---|---|
.. | ||
include | 1be7a368cc Update contrib/restricted/boost/optional to 1.84.0 | 11 месяцев назад |
README.md | da8658093c Reimport boost/optional as a separate project | 2 лет назад |
ya.make | 450ee391b1 Intermediate changes | 3 месяцев назад |
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.