Explore the evolution and implementation of allocators in C++11 through this comprehensive conference talk. Gain insights into the motivations behind custom allocators, learn about the coding idioms required by standard library vendors, and discover how to easily write new allocators. Delve into the changes in container implementation using the new allocator model. Understand the historical context of allocators in C++, including their limitations and the challenges faced in creating useful alternatives to std::allocator. Examine Bloomberg's experience with a different allocator model and how it influenced the adaptation of the C++ allocator framework. Investigate the 'allocator_traits' of C++11, their implementation challenges for library vendors, and how they simplify the process of writing new allocators. Learn how these changes impact the way containers access and use allocators, ultimately making custom allocators more accessible and seamlessly integrated with conforming containers.
Overview
Syllabus
Alisdair Meredith: Allocators in C++11
Taught by
CppNow