added is_state method to object_proxy and object_ptr to check state
This commit is contained in:
@@ -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_) {
|
||||
|
||||
Reference in New Issue
Block a user