Registry / utility / mapbox-variant

mapbox-variant

JSON →
library1.2.0vcpkgunverified

C++11/C++14 Variant implementation.

vcpkg install mapbox-variant
INSTALL
IMPORT
SIG · MAPBOX-VARIANT
M
mapbox-variant
utilitycppv1.2.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.

mapbox/variant.hpp
#include <mapbox/variant.hpp>

Use a variant type

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

No known issues recorded.

Upgrade
Version history
1.2.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

mapbox-variant — pip install mapbox-variant · libregistry