Go to file
2018-11-08 18:49:34 +01:00
doc docs and tests fixes 2018-11-08 18:46:03 +01:00
include/boost Fix for clang, when adapted type is convertible from other types. 2018-11-04 17:35:10 +03:00
meta Fix the category. 2016-01-10 15:15:44 +00:00
test docs and tests fixes 2018-11-08 18:46:03 +01:00
.gitattributes Initial versions 2003-01-22 17:54:11 +00:00
.travis.yml Add .travis.yml 2017-10-29 19:10:06 +02:00
index.html Merge in documentation fixes. Apart from the change to optional's documenation 2008-04-27 07:39:49 +00:00
README.md Added README.md file 2014-04-28 16:01:55 +02:00

optional

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.