added is_state method to object_proxy and object_ptr to check state

This commit is contained in:
2026-05-07 10:06:38 +02:00
parent 85d297995d
commit 8753042b3c
2 changed files with 6 additions and 4 deletions
+1
View File
@@ -67,6 +67,7 @@ public:
[[nodiscard]] bool is_transient() const { return proxy_->is_transient(); }
[[nodiscard]] bool is_detached() const { return proxy_->is_detached(); }
[[nodiscard]] bool is_removed() const { return proxy_->is_removed(); }
[[nodiscard]] bool is_state(const object_state state) const { return proxy_->is_state(state); }
void change_state(object_state s) const {
if (proxy_) {