Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Stretch Buffers in the stb header-only library:

https://github.com/nothings/stb/blob/master/stretchy_buffer....

This basically allows you to use std::vector<T> like vectors in C, but with an added benefit that you can subscript the vector like arr[3] rather than using unwieldly functions like vector_get(arr, 3) or vector_put(arr, 3, value).



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: