optional-lite
A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
To install this package, run one of the following:
optional lite is a single-file header-only library to represent optional (nullable) objects and pass them by value. The library aims to provide a C++17-like optional for use with C++98 and later. If available, std::optional is used. There's also a simpler version, optional bare. Unlike optional lite, optional bare is limited to default-constructible and copyable types.
Summary
A C++17-like optional, a nullable object for C++98, C++11 and later in a single-file header-only library
Last Updated
Mar 31, 2025 at 23:05
License
BSL-1.0
Total Downloads
1
Version Downloads
1
Supported Platforms
GitHub Repository
https://github.com/martinmoene/optional-lite