7 ms·
> I doubt there are any vector implementations that don't use exponential growth. Trivia fact time: Westwood Studios wrote their own vector implementation for
by DCoder 12y ago
> I doubt there are any vector implementations that don't use exponential growth.
Trivia fact time: Westwood Studios wrote their own vector implementation for the original Command&Conquer, and reused it for later games in the same series, until Renegade/Generals. That implementation uses linear growth, capacity grows by 10 elements each time.
- barrkel 12y agoIndeed; however that's not conforming to the standard, so it is not an implementation of std::vector ;)
- sebleblanc 12y agoBut it is an implementation, albeit a non-standard one.