Registry / utility / xproperty

xproperty

JSON →
library0.13.0vcpkgunverified

Traitlets-like C++ properties and implementation of the observer pattern

vcpkg install xproperty
INSTALL
IMPORT
SIG · XPROPERTY
X
xproperty
utilitycppv0.13.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.

xproperty/xproperty.hpp
✓ #include <xproperty/xproperty.hpp>

Define observable properties with change notifications

#include <xproperty/xproperty.hpp> #include <iostream> struct MyClass { xp::property<int> value = xp::property<int>(42, [](auto& self, int old_val, int new_val) { std::cout << "Changed from " << old_val << " to " << new_val << "\n"; }); }; int main() { MyClass obj; obj.value = 100; // triggers observer return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.13.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources

No resource links recorded.

xproperty — pip install xproperty · libregistry