Hacker News new | past | comments | ask | show | jobs | submit login
Placement New, Memory Dumps, and Alignment (jrruethe.github.io)
10 points by ingve on Aug 26, 2015 | hide | past | favorite | 1 comment



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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: