We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343460e commit fb636d9Copy full SHA for fb636d9
src/Flux/flxCoreProps.h
@@ -1594,6 +1594,18 @@ template <class T> class flxContainer : public flxObject
1594
return _vector.erase(pos);
1595
}
1596
1597
+ // simple remove based on value
1598
+ void remove(T value)
1599
+ {
1600
+ // in the vector?
1601
+ iterator it = std::find(_vector.begin(), _vector.end(), value);
1602
+
1603
+ if (it == _vector.end())
1604
+ return;
1605
1606
+ _vector.erase(it);
1607
+ }
1608
1609
// Defines a type specific static method - so can be called outside
1610
// of an instance.
1611
//
0 commit comments