Registry / utility / boost-optional

boost-optional

JSON →
library1.90.0vcpkgunverified

Boost optional module provides a container for optional values (similar to std::optional).

vcpkg install boost-optional
INSTALL
IMPORT
SIG · BOOST-OPTIONAL
B
boost-optional
utilitycppv1.90.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boost/optional.hpp
#include <boost/optional.hpp>

Use optional to return a value or none

#include <boost/optional.hpp> #include <iostream> boost::optional<int> maybe_value(bool flag) { if (flag) return 42; return boost::none; } int main() { auto val = maybe_value(true); if (val) { std::cout << *val << std::endl; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Meta
1
Amazon
1
Resources

No resource links recorded.

boost-optional — pip install boost-optional · libregistry