~/talk

Strongly Typed Containers

Talkat C++ on Sea 2022 · 2022-07-05..07-07· [c-and-cpp, software-architecture]
slides:none on file

Compares four header-only libraries (typesafe / named_type / strong_type / strong_typedef) and finds them functionally similar, MIT/BSL licensed, but each trades verbosity for flexibility; microbenchmarks show about 10% overhead versus raw std::vector in a push_back loop. Recommends avoiding public inheritance from STL (no virtual destructor) and prefers composition over public inheritance or private inheritance only rarely; aliasing is cheap but not type-safe. Open-source options are usable for apps, corporations may prefer an internal implementation.

AI-written summary · about

  1. 0:00Start
  2. 5:10What is the problem here?
  3. 9:10A sample implementation of a "strong type"
  4. 52:52What about the performance?
~/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.