New new() - The C++17's Alignment Parameter for the operator new() -- Bartlomiej Filipek

Save to:
Instapaper Pocket Readability

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.

Comments (0)

There are currently no comments on this entry.