Registry / utility / any-lite

any-lite

JSON →
library0.4.0vcpkgunverified

A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library.

vcpkg install any-lite
INSTALL
IMPORT
SIG · ANY-LITE
A
any-lite
utilitycppv0.4.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/any.hpp
#include <nonstd/any.hpp>

Minimal any-lite usage: store and retrieve an int.

#include <nonstd/any.hpp> #include <iostream> int main() { nonstd::any a = 42; std::cout << nonstd::any_cast<int>(a) << "\n"; // 42 return 0; }
Debug
Known issues
gotchaany-lite does not support move semantics in C++98 mode; use C++11 or later for optimal performance.
fix
Compile with C++11 or later to enable move semantics.
affects: all
Upgrade
Version history
0.4.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
18
OpenAI (training)
2
Meta
1
Amazon
1
Resources

No resource links recorded.

any-lite — pip install any-lite · libregistry