An introduction of std::align
with the arena allocator as motivational example
Little C++ Standard Library Utility: std::align
by Lesley Lai
From the article:
Recently, I learned about std::align, which is one of the lesser-known functions in the C++ standard library because of its limited use cases. Since it is hard to describe without a specific use case, I will use a simple implementation of an arena allocator as a motivational example.
Add a Comment