Registry / utility / optional-lite

optional-lite

JSON →
library3.6.0vcpkgunverified

A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library.

vcpkg install optional-lite
INSTALL
IMPORT
SIG · OPTIONAL-LITE
O
optional-lite
utilitycppv3.6.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.

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

Basic usage of optional-lite to store and access an optional value.

#include "nonstd/optional.hpp" #include <iostream> int main() { nonstd::optional<int> opt = 42; if (opt) { std::cout << *opt << std::endl; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.6.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

optional-lite — pip install optional-lite · libregistry