~/talk

Customizing the Standard Containers

Talkat CppCon 2017 · 2017-09-24..09-29· [compilers-and-language-design]
links:none on file
slides:none on file

Covers how standard containers are actually customized: allocator objects versus allocator types, allocator responsibilities (allocators: allocate/deallocate/construct/destroy), and real use cases like memory pools, shared memory and tiny-block allocation for immutable data. Explains comparator requirements and pitfalls including const comparator requirement and strict weak ordering bugs. Demonstrates hashers with primes <100 using three hashes and shows a constant/random-like hasher collapses every element into one bucket (hash collision demo with primes <100), so expect code examples and practical gotchas.

AI-written summary · about

  1. 0:00Intro
  2. 2:10The Standard Containers
  3. 3:58Customization Methods
  4. 4:59Allocator Talks this week
  5. 9:21What does an allocator do?
  6. 11:24Allocating memory a simple implementation
  7. 20:27What can you do with this?
  8. 27:05Creating objects in allocated memory a simple implementation
  9. 34:01Using your own allocator
  10. 40:34Allocators and containers
  11. 43:30What do comparison functions look like?
  12. 52:26Using your own comparison functions
  13. 56:35The importance of a good hash function
~/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.