I'll look into it more. I never thought of partition() for this, but I guess it's similar to remove_if().
I'm sort of surprised that there's not already an STL algorithm for the remove_if+erase combo. Seems like something that would come up pretty often.
Unbinds aren't performance critical and a single VitualKey should (should, lol) only have a handful of bindings at most, but I ought to practice a better strategy for this.
Thanks, all.