diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 12966a2c28..4ee2f1fdc6 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -113,6 +113,11 @@ inline void RemoveIf( Container& c, Predicate p ) { c.erase( remove_if(c.begin(), c.end(), p), c.end() ); } +template +inline void RemoveIfEqual( Container &c, const Value &v ) +{ + c.erase( remove(c.begin(), c.end(), v), c.end() ); +} /* Helper for ConvertValue(). */ template