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.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.