Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualKhatharr

Posted 18 January 2013 - 04:32 AM

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.


#2Khatharr

Posted 18 January 2013 - 04:32 AM

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 should practice a better strategy for this.

 

Thanks, all.


#1Khatharr

Posted 18 January 2013 - 04:23 AM

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.

 

Thanks, all.


PARTNERS