• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.drone/25-Apr-2025-3825

.github/workflows/25-Apr-2025-378353

doc/25-Apr-2025-3,6002,543

include/boost/25-Apr-2025-4,4103,081

meta/25-Apr-2025-1817

test/25-Apr-2025-7,3674,982

.drone.starD25-Apr-20255.5 KiB3733

.gitattributesD25-Apr-20253.8 KiB9791

.travis.ymlD25-Apr-20254.7 KiB202173

CMakeLists.txtD25-Apr-2025827 2924

README.mdD25-Apr-2025393 1611

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