C++17's new and handy new operator that supports overaligned objects!
New new() - The C++17's Alignment Parameter for Operator new()
by Bartlomiej Filipek
From the article:
The whole deal about the new functionality is that you can forgot about the limitation of over-aligned data. It lets you write regular modern C++ code without worrying about specialized allocators or raw memory handling functions like std::aligned_alloc() or _aligned_malloc().
Add a Comment
Comments are closed.