Nicholas Baron
aa4d41fe2c
AK+Kernel+LibELF: Remove the need for IteratorDecision::Continue
...
By constraining two implementations, the compiler will select the best
fitting one. All this will require is duplicating the implementation and
simplifying for the `void` case.
This constraining also informs both the caller and compiler by passing
the callback parameter types as part of the constraint
(e.g.: `IterationFunction<int>`).
Some `for_each` functions in LibELF only take functions which return
`void`. This is a minimal correctness check, as it removes one way for a
function to incompletely do something.
There seems to be a possible idiom where inside a lambda, a `return;` is
the same as `continue;` in a for-loop.
2021-05-16 10:36:52 +01:00
..
2021-04-22 11:22:27 +02:00
2021-05-05 18:51:06 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-10 11:55:52 +02:00
2021-05-05 18:51:06 +02:00
2021-05-13 23:28:40 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-16 10:36:52 +01:00
2021-05-07 15:35:23 +02:00
2021-04-22 11:22:27 +02:00
2021-05-15 09:01:32 +02:00
2021-04-22 11:22:27 +02:00
2021-04-27 09:19:55 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-13 23:28:40 +02:00
2021-04-22 11:22:27 +02:00
2021-04-25 09:38:27 +02:00
2021-05-13 16:21:53 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-16 10:36:52 +01:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-07 15:35:23 +02:00
2021-05-16 10:36:52 +01:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-15 16:28:18 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-15 21:25:54 +02:00
2021-05-13 16:21:53 +02:00
2021-04-29 20:31:15 +02:00
2021-04-29 20:31:15 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:31:15 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-01 09:10:30 +02:00
2021-04-22 11:22:27 +02:00
2021-04-24 23:00:28 +02:00
2021-04-30 11:43:19 +02:00
2021-05-14 23:32:10 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-05-07 15:35:23 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-25 09:38:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-22 11:22:27 +02:00
2021-04-29 20:31:15 +02:00