Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.drone/ | 25-Apr-2025 | - | 38 | 25 | ||
.github/workflows/ | 25-Apr-2025 | - | 378 | 353 | ||
doc/ | 25-Apr-2025 | - | 3,600 | 2,543 | ||
include/boost/ | 25-Apr-2025 | - | 4,410 | 3,081 | ||
meta/ | 25-Apr-2025 | - | 18 | 17 | ||
test/ | 25-Apr-2025 | - | 7,367 | 4,982 | ||
.drone.star | D | 25-Apr-2025 | 5.5 KiB | 37 | 33 | |
.gitattributes | D | 25-Apr-2025 | 3.8 KiB | 97 | 91 | |
.travis.yml | D | 25-Apr-2025 | 4.7 KiB | 202 | 173 | |
CMakeLists.txt | D | 25-Apr-2025 | 827 | 29 | 24 | |
README.md | D | 25-Apr-2025 | 393 | 16 | 11 |
README.md
1optional 2======== 3 4A library for representing optional (nullable) objects in C++. 5 6```cpp 7optional<int> readInt(); // this function may return either an int or a not-an-int 8 9if (optional<int> oi = readInt()) // did I get a real int 10 cout << "my int is: " << *oi; // use my int 11else 12 cout << "I have no int"; 13``` 14 15For more information refer to the documentation provided with this library. 16