diff --git a/src/App/Property.h b/src/App/Property.h index deae8c02d6..f26194b109 100644 --- a/src/App/Property.h +++ b/src/App/Property.h @@ -1097,6 +1097,16 @@ public: guard.tryInvoke(); } + template F> + int removeIf(F f) { + ListT vals = _lValueList; + size_t removed = std::erase_if(vals, f); + if (removed > 0) { + setValues(std::move(vals)); + } + return static_cast(removed); + } + protected: void setPyValues(const std::vector& vals, const std::vector& indices) override {