add destroy function

This commit is contained in:
2025-09-21 19:24:01 +05:30
parent aa3bd82194
commit 0a27d5a520
2 changed files with 13 additions and 1 deletions

View File

@ -21,6 +21,7 @@ public:
bool load();
bool attach();
bool destroy();
void load_and_attach();
[[nodiscard]] bool is_loaded() const { return obj_ != nullptr; }