Modern C++ allocators

Day 1 /  / Track 1  /  RU / For practicing engineers

This talk covers allocators, basic concepts and advanced thongs alike. We'll touch on the history of allocators, discuss mistakes in their design, look at modern allocators offered by the standard library and see which problems they solve. We'll discuss more thoroughly polymorphic_allocator and memory_resource, introduced in С++17 and evolving further in C++20. We'll also cover C++ allocators support from the library developers' point of view; that should help us write correct code.

This talk's purpose is to introduce allocators to the audience, show which allocators to use in which cases, tell how allocator propagation model works for nested containers, and discuss what allocator support can bring to library developers.