Hi,
I would like to align an array of class instances that's dynamically allocated as follows:
Myclass *foo=new Myclass[N];
I'll pad the class so that its instances are the size of a cache line. Now I obviously want the array elements to be cache aligned.
How do I achieve this? I'm rather new to C++, so don't be afraid of giving too much detail!
Thanks in advance




