4 ms·
> The problem with vector is that it always heap-allocates. How about std::array ?
by geezerjay 8y ago
> The problem with vector is that it always heap-allocates.
How about std::array ?
- int_19h 8y agoIt's not dynamically sized - the size is a template parameter, which means that it has to be a compile-time constant.