Use std20::erase_if function
Use std20::erase_if function

Summary: Use std20::erase_if function instead of directly erasing while iterating.

Reviewed By: thezhangwei

Differential Revision: D40926351

fbshipit-source-id: 841f272f3b017ebd29f7c1bff9aeddd8c6b87db1

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex