Commit aedde45
committed
Modernize erase-remove idiom to C++20 std::erase/std::erase_if
Replace traditional erase-remove idiom usage on standard containers with
C++20 std::erase and std::erase_if across the cuttlefish package.
Assisted-by: Jetski:Gemini Next1 parent f7d32f3 commit aedde45
2 files changed
Lines changed: 6 additions & 10 deletions
File tree
- base/cvd/cuttlefish/host/commands
- cvd/cli/parser
- process_sandboxer
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
| 308 | + | |
| 309 | + | |
312 | 310 | | |
313 | 311 | | |
314 | 312 | | |
| |||
0 commit comments