3 ms·
Of course you can create a vector of pointers and do whatever you want. If you need contiguous memory though this is likely a terrible way to go about it since
by CyberDildonics 11y ago
Of course you can create a vector of pointers and do whatever you want.
If you need contiguous memory though this is likely a terrible way to go about it since you are not only having to dereference pointers that could go anywhere, but each one will mean a separate heap allocation which will be slow for small objects and not scale with concurrency.