| Crates.io | boost_optional |
| lib.rs | boost_optional |
| version | 0.1.0 |
| created_at | 2025-08-29 18:00:31.925098+00 |
| updated_at | 2025-08-29 18:00:31.925098+00 |
| description | Boost C++ library boost_optional packaged using Zanbil |
| homepage | |
| repository | https://github.com/zanbilify/boost_optional |
| max_upload_size | |
| id | 1816229 |
| size | 460,743 |
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.