|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| doc/ | H | 08-Jul-2015 | - | 3,001 | 2,178 |
| meta/ | H | 08-Jul-2015 | - | 17 | 16 |
| test/ | H | 08-Jul-2015 | - | 4,883 | 3,220 |
| README.md | H A D | 08-Jul-2015 | 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