~/talk

“Constant Fun"

Talkat CppCon 2016 · 2016-09-18..09-23· [compilers-and-language-design]
links:none on file
slides:none on file

Shows how to build a compile-time associative container (string-to-enum/factory) using C++11 templates and C++14 constexpr features like string_view and index_sequence, and implements compile-time merge/quick sort and merge routines to produce a sorted, duplicate-free map. Demonstrates that template-recursive implementations blow up compile time while a constexpr sort shrinks compile times from tens of seconds to a few seconds, and shows static_assert tests that run at compile time with zero runtime cost.

AI-written summary · about

  1. 0:00Intro
  2. 0:45Overview
  3. 1:56Constant Expressions
  4. 6:05Bitmask vs. constexpr
  5. 8:07constexpr Functions
  6. 10:40Literal Types
  7. 12:57Names in constexpr
  8. 14:00Name Example
  9. 17:16Name Implication
  10. 18:21Objective
  11. 19:25Attempt: Use an Array
  12. 20:13Detour: string_view
  13. 28:25Validity of constexpr Fun
  14. 30:37constexpr Map Members
  15. 30:57Deducing Type
  16. 33:19Sorting Elements
  17. 41:51Constexpr Factory Map
  18. 42:24Times gcc
  19. 44:14Compile-Time Test
  20. 46:08C++17 constexpr
  21. 49:12Conclusions
  22. 52:07Times clang
~/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.