In C++ you can force that with alignas(), I would imagine other low level languages offer something similar.
If you're using a custom allocator you'd have to enfore it yourself which should be fine since you have full control.
If you're using a custom allocator you'd have to enfore it yourself which should be fine since you have full control.