Hacker News new | past | comments | ask | show | jobs | submit login

> The problem with vector is that it always heap-allocates.

How about std::array ?




It's not dynamically sized - the size is a template parameter, which means that it has to be a compile-time constant.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: