input: Use set::find to accelerate the finding process
This CL uses a set::find overload to use the uint32_t type to find the object to avoid construct another object. By following the style guide, added a comparator struct. "For example, if your type doesn't have a natural ordering, but you want to store it in a std::set, use a custom comparator rather than overloading <." https://google.github.io/styleguide/cppguide.html#Operator_Overloading Bug: None Change-Id: Ic8b9f51a3b3a50601b1ecfa1ba8039ecf16a22ee Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2358449Reviewed-by:Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Shimi Zhang <ctzsm@chromium.org> Cr-Commit-Position: refs/heads/master@{#798823}
Showing
Please register or sign in to comment