Registry / utility / polymorphic-value

polymorphic-value

JSON →
library1.3.0vcpkgunverified

A polymorphic value-type for C++

vcpkg install polymorphic-value
INSTALL
IMPORT
SIG · POLYMORPHIC-VALUE
P
polymorphic-value
utilitycppv1.3.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.

polymorphic_value/polymorphic_value.hpp
#include <polymorphic_value/polymorphic_value.hpp>

Shows polymorphic value usage with virtual dispatch

#include <polymorphic_value/polymorphic_value.hpp> #include <iostream> struct Base { virtual void greet() const { std::cout << "Base\n"; } }; struct Derived : Base { void greet() const override { std::cout << "Derived\n"; } }; int main() { isocpp_polymorphic_value::polymorphic_value<Base> p = isocpp_polymorphic_value::make_polymorphic_value<Derived>(); p->greet(); return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources

No resource links recorded.

polymorphic-value — pip install polymorphic-value · libregistry