~/talk

Making Allocators Work, Part II

Talkat CppCon 2014 · on Wednesday, 2014-09-10· at 15:15· Descartes· [web-performance]
links:none on file
slides:none on file

Explains how C++11 turns the broken C++98 allocator parameter into a usable system by showing the actual implementation: SFINAE tricks with SFINAE and decltype and alias templates to detect nested types, how allocator_traits deduces pointer, difference_type and size_type, and how runtime scoped_allocator_adapter and a polymorphic allocator interface let containers and shared‑memory systems interoperate. Gives concrete code patterns, a Bloomberg BSL example, and reports the approach works with modest runtime cost and much less boilerplate.

AI-written summary · about

  1. 0:00Introduction to allocators
  2. 1:08Understanding SFINAE
  3. 3:33Implementing type traits
  4. 5:55Allocator traits in C++11
  5. 8:25Generalized SFINAE and types
  6. 11:00Determining difference type
  7. 12:08Using pointer traits
  8. 14:10Q&A on SFINAE and traits
  9. 17:56Constructing with traits
  10. 20:56Designing custom allocators
  11. 22:44Simplified allocator design
  12. 24:24Bloomberg allocator model
  13. 28:54Q&A on runtime allocators
  14. 30:40Virtual interfaces and BSL
  15. 35:37Container implementation
  16. 37:20Exception safety in containers
  17. 42:50Pointer increment caveats
  18. 44:18Q&A on container design
  19. 46:23Uses allocator trait
  20. 49:40Scoped allocator adapter
  21. 53:49Q&A on shared memory
  22. 55:28Performance and design
  23. 1:01:56Summary and concluding Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.