Skip to content

Conversation

@SaiCharanMarrivada
Copy link

Replace the capacity-doubling loop with (reserve_cap + len).next_power_of_two(). Given the existing invariant that capacity is a power of two, the result is identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants