Vec: A Blazing Fast, Leak-Safe Dynamic Array for C

2025-09-21
Vec: A Blazing Fast, Leak-Safe Dynamic Array for C

Vec is a generic, fast, and leak-safe dynamic array for C. It uses contiguous memory, grows geometrically (×2) for amortized O(1) push operations, and offers a method-style API for an object-oriented feel. The library prioritizes safety with overflow guards, bounds-checked accessors, and well-defined behavior for edge cases. Its design balances performance and safety, providing a clean and efficient interface.

Development