RFR: 8314502: Change the comparator taking version of GrowableArray::find to be a template method [v8]
Quan Anh Mai
qamai at openjdk.org
Mon Nov 20 02:38:42 UTC 2023
On Fri, 17 Nov 2023 13:45:14 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
>> We need `token` to find it in the array, don't we? All the invocations pass such a function with two parameters. The change here needs all invocations to be changed.
>
> No, it can be embedded into the function object.
I think you can have 2 versions, `GrowableArray::find(const E& value)` and `GrowableArray::find_if(UnaryPredicate p)`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15418#discussion_r1398608278
More information about the serviceability-dev
mailing list