• Home
Name
Date
Size
#Lines
LOC

..--

doc/12-May-2024-21,64920,047

meta/12-May-2024-1716

test/12-May-2024-7,3654,980

CMakeLists.txtD12-May-2024827 2924

README.mdD12-May-2024393 1611

index.htmlD12-May-2024493 1413

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