When using at_put and at_put_grow you can provide a value which will be supplied to the constructor of each element. In other words, you can intialize each element through a copy constructor.
I suggest that we also provide a function equivalent where the function is provided a pointer to the memory to be initialized.
I suggest that we also provide a function equivalent where the function is provided a pointer to the memory to be initialized.
- relates to
-
JDK-8301373 Potential use after free in GrowableArray
- Open
- links to
-
Review openjdk/jdk/16409