1
0
Fork 0
arangodb/3rdParty/boost/1.62.0/libs/optional
jsteemann a2411488ae remove unused files (with long filenames that produce problems on Windows checkouts) 2017-05-08 10:46:07 +02:00
..
doc
meta
test
README.md

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.