Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#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