1
0
Fork 0
arangodb/3rdParty/boost/1.61.0/libs/optional
Wilfried Goesgens 0525ca4d5d Remove the boost documentation.
The wintendo can't stand long filenames in 2016
2016-08-17 10:58:11 +02:00
..
meta upgraded to boost 1.61.0 2016-08-12 17:17:29 +02:00
test upgraded to boost 1.61.0 2016-08-12 17:17:29 +02:00
README.md upgraded to boost 1.61.0 2016-08-12 17:17:29 +02:00
index.html upgraded to boost 1.61.0 2016-08-12 17:17:29 +02:00

README.md

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.