~/talk

C++: All the flavours of operators new and delete

Talkat 4Developers 2020 · 2020-09-14..09-18· [c-and-cpp]
links:none on file
slides:none on file

C++20 defines 22 flavours of operator new and 30 versions of operator delete and the talk enumerates exact cases: throwing vs nothrow, single-object vs array, placement forms, class-specific overrides and aligned variants. It shows that global overrides are always chosen by make_unique, placement new with void* is non-overridable, class destroying delete is preferred, and aligned delete requires matching alignment and explicit destruction unless the right overload is called — demos expose surprising resolution and lookup quirks.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Flavors of new and delete
  3. 4:05Allocation functions basics
  4. 10:11Default and value initialization
  5. 13:00Placement operators
  6. 17:57Overriding operators new and delete
  7. 24:11Global vs class-specific overrides
  8. 26:43Placement operator limitations
  9. 29:15Smart pointers and allocation
  10. 32:48Aligned allocation functions
  11. 36:01Alignment operator examples
  12. 41:28PMR and closing
~/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.