
Andrey Semashev wrote:
First, nice to see this submission, I've been missing and reimplementing this functionality from time to time.
Second, you may see this:
Thanks! I'll extend the implementation and update the documentation around aligned_alloc accordingly.
One other note. I can see that aligned_allocator does not allow to specify the alignment. I assume it uses the type T alignment?
Yes, it uses the type T alignment.
Can this class be extended so that I can specify the alignment explicitly in the template parameters?
Definitely. Instead of specifying the alignment value as a template
parameter, maybe a preferable design is:
template