Registry / utility / variant-lite

variant-lite

JSON →
library3.0.0vcpkgunverified

A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library

vcpkg install variant-lite
INSTALL
IMPORT
SIG · VARIANT-LITE
V
variant-lite
utilitycppv3.0.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/variant.hpp
#include <nonstd/variant.hpp>

Creates a variant holding an integer and prints its value.

#include <nonstd/variant.hpp> #include <iostream> int main() { nonstd::variant<int, double> v = 42; std::cout << nonstd::get<int>(v) << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

variant-lite — pip install variant-lite · libregistry