commit | 500ed210e0a28f5051122d9f4cdcc8c52d282ea7 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Fri Jan 07 09:54:21 2022 -0800 |
committer | Kelvin Zhang <zhangkelvin@google.com> | Fri Jan 07 09:55:38 2022 -0800 |
tree | 8e7ad3a5796e05e70bd4e75e5a827aa396e92ad9 | |
parent | 12e5f038a970fdf099d4450482342c1997a42fbf [diff] |
Use insert() with ranges instead of reserve STL implementation of insert() is generally smart enough to reserve storage before hand. No need to do reserve() followed by for each loop Test: th Change-Id: I36e88c121868b97ea525b292a67b36983c530e56