Hacker News new | ask | show | jobs
by abaines 3953 days ago
C++11 introduced the alignof operator [0] along with the alignas specifier [1], which can be useful when doing placement-new style allocation like this.

[0]: http://en.cppreference.com/w/cpp/language/alignof [1]: http://en.cppreference.com/w/cpp/language/alignas