An open API service indexing awesome lists of open source software.

https://github.com/boostorg/optional

Boost.org optional module
https://github.com/boostorg/optional

Last synced: 9 months ago
JSON representation

Boost.org optional module

Awesome Lists containing this project

README

          

optional
========

A library for representing optional (nullable) objects in C++.

```cpp
optional readInt(); // this function may return either an int or a not-an-int

if (optional 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.