Is there any way to align memory allocated with new to a 2d array?. how can I aligned memory allocated to a 2d array or totally allocated to an object or array of objects.
Last edited on
Could you elaborate the question a little? Memory allocated with new is already aligned.
If he was not worried about alignment, he could as well coded it in Java...
I always hear that the main killer feature of C++ is fine control over memory alignment and locality.