Commit f0b4f89
committed
Refactor
This avoids the need to declare and mutate iterators. Its states what it
is doing by means of the name of the algorithm - `std::any_of`, which
saves on reading a loop to work it out.goto_cc_cmdlinet::have_infile_arg using std::any_of
1 parent 1fc57a6 commit f0b4f89
1 file changed
+7
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
146 | 145 | | |
0 commit comments