On Mon, 24 Oct 2022 08:11:42 GMT, Axel Boldt-Christmas <abold...@openjdk.org> wrote:
> Any thoughts of moving `expand_to` and `shrink_to_fit` to a common function, > given that they share a lot of logic. Something like a general resize that > [...] You are right that there are some opportunities for factoring out common code, though probably not as a general resize operation. (And that name already has a different meaning for std::vector, so I would probably look for a different name anyway.) I'm going to address that as a followup issue. ------------- PR: https://git.openjdk.org/jdk/pull/10827