use saner parameter order for reallocate / reallocate_inplace #17837
Labels
A-allocators
Area: Custom and system allocators
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
I wasn't really thinking about it when I added the
old_size
parameter and just put it at the end since it was a new addition. It would be better to match the order used by other APIs likemremap
by putting the old size before the new size because it's more intuitive (old_ptr, old_size, new_size).The text was updated successfully, but these errors were encountered: