| ▲ | dooglius 10 hours ago | |
Strictly speaking, the capacity is still stored internally to the allocation (it needs to be, in order to implement realloc) | ||
| ▲ | rurban 2 hours ago | parent [-] | |
You don't, as the capacity is always the next power of 2 of the length. | ||